- Home /
Game FPS Down When Phone is going to Asleep(Or Lock) in Android
When Am playing game my game fps Is around 45-60 but when the Phone Is Asleep(Or Lock) in android then Fps going to 20-30..
I didn't understand what the issue
Please if anybody handle this issue please give me a solution..
It depends on how you calculate your fps, but it could be that sleeping has an effect on this; then the actual fps will be higher.
Answer by drawcode · May 27, 2013 at 02:06 PM
Not sure why you'd need the game to run at a high framerate when not active but I believe Unity will stop updating renderer or become more optimized when it is not active. Lock probably sends http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationFocus.html or http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html so put some logs there to see if that is what is happening.
Your answer
Follow this Question
Related Questions
Enemy locators 1 Answer
Do we have 3d online game for android developing in unity3d now? 0 Answers
Problem with acclerometer 0 Answers
Android: Game not fitting on screen 1 Answer