N
N
Nazarevsky2021-08-13 13:31:43
C++ / C#
Nazarevsky, 2021-08-13 13:31:43

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

1 answer(s)
G
GavriKos, 2021-08-13
@Nazarevsky

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 question

Ask a Question

731 491 924 answers to any question