- Home /
Android lag on Nexus 7 (2012)
Hi,
I have a fairly simple game that some objects spawn at top of the screen and move down with a very simple translate on their update call. I have 4 objects at most and Android builds lag on Nexus 7.
I don't the lag on Galaxy Tab 10.1 which is an older device though.
I checked with profiler but could not see any spikes of performance hit. I can't debug on Nexus 7 because apparently Unity crashes and it's a known bug.
Is there any known problem with this device?
OR how can I debug this problem further?
Thanks.
I have a Nexus 7 and I can play on it without problems. Do other games present this problem on your device?
How many draw calls have your game? Are you using physics? The lag starts after a while or right from the beginning?
Hey thanks for the reply!
I don't see bugs in other games but despite flashing 4.4.4 recently on it, I sense some lag in general UI as well but other games seek O$$anonymous$$.
To answer your questions:
Draw calls are like ~16.
I'm using 3D physics since game was developed before Unity's own 2D system. Utilizes 2D Toolkit.
Lag is not consistent, it comes and goes. Like stutter. I display framerate on the screen and goes from 59 to sudden 48 and then up again.
Game is fairly simple and I'm wondering why it is the case.
In the mean time I've tested with some other devices and it's way better on them, even though some of them have inferior processing power.
Are you destroying/instantiating objects frequently. Do the lag spikes seem to be related to these actions? If yes, then you can try using object pooling.
It is weird that it works better on inferior devices :S
I'm not pooling, even though I should but if GC is the problem, why it won't show itself on other devices?
Also I don't see a GC spike in profiler neither and I see the lag from start of the game, it won't happen after some time.
Is there any solid way to test the performance of the device like if it's acting as the way it should or not?
Hey UnbreakableOne, I have the same issue like you. Did you find any solutions for it??? Thanks.