- Home /
2D game shakes,2D Mobile game shaking
Hello all. I'm working on a 2D Android/iOS mobile game. Everything runs smoothly on my android phone except the fact that it heats up the phone, but which game don't? So my problem is that the game is shaky when I play it in Unity editor (I'm using the 2019.2.15f version). Well this is not a big deal since all I want is that the game run good on android and ios. Still it makes me uncomfortable. I checked the profiler and I can't see anything un-ordinary. Also since it runs smooth on phone, I'm not sure what can be a problem. BUT, recently I wanted to test the game on my samsung tablet, so I built the project and the menu scene opened nicely, everything cool, but then I loaded my first scene (level 1) of the game and everything was shaking, like literally from the background and obstacles to the character, everything. It still runs playable, so it's not a lag thing, but it shakes like crazy and I don't really know what to do since I couldn't find any issue in profiler... Any ideas?
did you profile the mobile device in question?
You still might want to post a screenshot of the profiler to be double sure and have someone else take a look too.
And last but not least (first rather), make sure any camera movement is performed in LateUpdate.
Answer by SteelAlien · Dec 19, 2019 at 03:42 PM
@hexagonius this is the screenshot of the profiler. Also I managed to get rid of the full shaking on tablet by moving the camera movement to late update and by selecting OpenGLES over Vulkan.
But still, the profiler looks terrible. The game runs okayish on both tablet and mobile right now, but sometimes random shakes occur, not that game impacting, but still it's on my nerves.
That's a profiler snapshot of your computer isn't it? Could you show one from the device directly?
Just build in development mode and also enable attach profiler.
Your answer
Follow this Question
Related Questions
[MOBILE 2D] Move object relative to finger in x axis 1 Answer
How do i make 2d bike game? 1 Answer
Expand object on touch? 1 Answer
Avoid touch input when pressing the "Pause" button 1 Answer
Destroy Object On Touch? 2D 1 Answer