Whenever I look at my framerate in the profiler of stats window, the framerate is really high like 300 or 400fps. But when you’re watching the game in the screen, it’s clearly not running that fast, usually around 30 fps it looks like.
I’m trying to optimize my game for the iPhone right now, but it’s really hard to tell what my actual framerates are or what to expect on the device. Anyone know how to make this more accurate I guess?
Thanks!
@rstorm000, if there is one thing to learn about mobile development it is that if you aren’t testing on the device you arent testing at all. The entire pipeline used from touch detection all the way down to putting a pixel on the screen if almost entirely different on the device. Never, ever profile when not using the actual hardware you are releasing to.
Especially since unity 3.2 you can run the profiler connected to the game running on the device directly
Well I’ve actually just started using the on device profiler since writing that. I’ve noticed it runs a little slower on the device when profiling but still very useful. It still doesn’t make sense to me however that the framerate on my computer looks lower than it says?
Most of my framerate seems to go to Camera.Render, is there a standard that amount of time for these and other scripts? Right now mine is averaging around 10ms
Optimally you want the whole frametime to be 16 or smaller
As for on device profiler: I hope we talk about the same thing? that means enabling development build and auto profiling in the build settings, then build and deploy to iOS and look at the profiler in the editor while it runs on the device 
Yes, for the device profiler, we are talking about the same thing.
I guess what I’m asking is what’s the right ratio on a given frame for these each area.
After I changed basically all transparent materials to diffuse, on a given frame I’ve got
14.67 ms to 68.1 fps for whole frame
Render 44.9% at 6.59ms
Scripts 33.7% at 4.95ms
GUI 13.1% at 1.92ms
Physics 13.7% at 2.02ms
Particles 7.2% at 1.06 ms
anything strange here?
Also is there any way to select a whole sections and average it?
There is no right ratio. it totally depends on what you do.
Whats relevant is only that the sum is low enough to offer playable framerates and that the game is appealing 
The ratio is totally irrelevant 