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 !
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.
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.
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.