- Home /
Game not running smoothly on mobile device
I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use the word "lag" as I don't think that's the correct term in this case. To be more specific, my game involves as series of platforms moving continuously from one end of the screen to another. When I play it on my mobile device, the platforms look a bit "shaky", as if the speed of the platform isn't exactly constant.
It's possible that this is happening due to my computer having a more powerful processor than my phone and hence, the performance isn't on par. But I don't see why that should be the case given that my scene isn't very complex. I've released an earlier version of this game on android before with roughly the same number of objects in my scene. It ran as smoothly on my phone as on my computer. Hence, I was expecting this version to be just as smooth.
To find out the problem, I made my game less complex by removing more objects from my scene and running it on my phone. But the performance was no different. The platforms still look quite "shaky" and their movement don't feel very smooth. Any idea what's causing this? Perhaps there's some sort of setting I'm not aware of that can render the game on my phone just as well as on my computer?
Answer by TheSaviour · Apr 02, 2018 at 03:52 PM
Alright it seems that I've fixed it. Turns out there's this thing called Quality in Project Settings. The quality for Android was set to "Fantastic", so it was rendering the game at a much higher quality than my phone can support. I changed it to "Fastest" and now it runs as smoothly as in my computer.
I set quality to low or very low but problem is not fixed. Gameobjects in my game don't move smoothly, they are still stuttering.
Have you builded your game or do you use Unity Remote 5?
I tried both but no differences, my game still stuttering
i see in that profiler that was uploaded the phone resolution, i have same problem and my phone supports same resolution as yours, maybe that is the issue? how do i make my game play at a lower resolution like 1024 and take the whole phone space instead of using max 1092? that should improve the game performance drastically , cause no matter how well i optimize it the lagg remains and becomes even more sluggish every time i add something new on the map in editor works perfect , on my phone not so much and my phone has 3gb ram so it should be able to run it properly i even dropped the resources resolution by 8 times on very low settings but is still slow maybe cause phone itself overrides the game settings once is installed on it? do i need to write a script to control these things? cause phone seems to play it by default with high quality i even build it b=in 16 bits instead of 32...as soon as i added the water to create my ocean ...it became so slow that is almost unplayable ( and i didn't make the small lakes and floded caves yet just the ocean ) i'm using the basic water from standard assets so it cant eat too many resources as is old not that fancy all that's left is to set up the inventory and menu + place npc and write the quests ( story ) but if i can't fix this problem game will not run on weaker devices ( under 3gb ram phones ) $$anonymous$$e is from end of 2017 and beginning of 2018 so is not that old nor weak and not many ppl have a strong phone these days ( i've seen lots of old posts with this same issue and no real answers, and most don't suit me because my game is 3d most are asking for 2d or simple things and most assets i downloaded compatible for mobile with 1024 max resolutions some just some have 2k and 4k ( just one asset ) but i halved those resolutions after game plays so that is not a problem either i fixed all incompatible shaders with android and other asset settings that were not suited for android took me like 4 hours to go thru every asset/material/shading and stuff to check if is properly balanced for mobile all settings are set to lowest i even hide shadows now i'm rebaking the lights ( hope these new settings for them will make it smother) and everithing aside from characters i made static also have lod even on buildings parts like door/window/chair stuff ( is kinda weird seeing half the house disapear when you get far from it a bit but..i need it to be functional ( is the story that i wrote for it what's important for now - quests - ) so i need it to work else the players cant enjoy it
Your answer
Follow this Question
Related Questions
Massive Flickering in build mode only 2 Answers
Lighting is not working after building for PC. 0 Answers
Distribute terrain in zones 3 Answers
Problems when making a build of a game for testing. 1 Answer
LOTS of build errros 0 Answers