Game runs slower on Android without performance issues.
Hello !
I was wondering about why my game is running slowly on my Android device, but not in the editor. The isn't laggy at all, it's just like... the values were lowered when the apk was build.
The GameObects that moves slower are not moving with gravity, but simply an update of the transform.position. How can I fix that ? And make the values the same on both platforms ?
If I wasn't clear enough, feel free to ask me more details ! Thank you in advance !
Same! Problem When i Build for Android are lage & Pritty $$anonymous$$uch Slow, Else i am Play in Unity Editor Game are Working Good but not good! on Android
Answer by Rakshaan · Mar 24, 2018 at 01:17 PM
Make sure you use you code mainly in fixedUpdate. Then go to project settings and Time. Play with the "Fixed Time Step" option. That helps the frame rate issue if nothing else does.
Answer by HenryStrattonFW · Nov 09, 2015 at 03:45 PM
It may be that you are not taking time into consideration for when you are moving objects, don't forget that the editor will typically run at a much higher framerate/updaterate than mobile devices. So to keep speeds consistent you normally want to be moving things in relation to Time.deltaTime so if you're moving an object in its Update() if you scale the movement by Time.deltaTime then Editor and mobile should show consistent results.
Just a first thought, it may be something else.
Answer by kami1339 · Feb 15, 2019 at 12:59 PM
Solved it & Tasted. 1-Shaders wila make your speed low. Dont smooth. Dont us big texture's files . 2-Change parametr in build setting.like this image . 3-Make sure you use your codes mainly in fixedUpdate. 4-Use acllusion .It can consider used object only.
Using codes mainly in FixedUpdate is not a good solution. Use FixedUpdate only for physics