Answer the question
In order to leave comments, you need to log in
How to increase fps in the game in Unity?
Hello!
Faced the following problem. After compiling the game created on the unity, I test it on the phone. FPS jumps between 30 and 60 (it quickly changes from 30 to 60, then from 60 to 30, which creates microfreezes), despite the fact that I have Application.targetFrameRate set to 100. Decreased the value from 100 to 45: now it produces stable 30 fps. There are two repeating animations hanging on the stage (which, as I found out after disabling them, do not affect performance in any way). In Unity itself on the PC, it gives out exactly as many fps as I indicated in the targetFrameRate (that is, 100).
Has anyone encountered a similar problem? What would you recommend for a solution?
Answer the question
In order to leave comments, you need to log in
I advise you to run the profiler and see. Without seeing the game, you can not say what you have there.
Maybe the canvas is constantly updated, maybe a million objects, maybe the camera is crooked, maybe the code is bad - and a hundred more reasons that can give friezes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question