A
A
Alexander2021-08-08 13:28:25
Unity
Alexander, 2021-08-08 13:28:25

Fps drop. How to fix?

Greetings. There is a counter in the project. I evaluate by "Min FPS", if there are subsidence.
Link to the project: https://drive.google.com/file/d/1GgD5GrRgOKkJgXGMK...

Removed this from the code:

QualitySettings.vSyncCount = 0;
Application.targetFrameRate = Screen.currentResolution.refreshRate;

In the project settings I set Vert. Every V Blank sync. It's already better, but there are fps drops up to 14-19 (there is one cube per scene, what to render there?). Phone game. Tested on Android.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-08-09
@AlexandrG44

Vert. Synchronization set to Every V Blank. Removed the DOTween Pro component (there is visual scripting, you hang the component and press the buttons instead of the code) from the UI, everything is ok with FPS now.
Add. info:
https://forum.unity.com/threads/disabling-v-sync-o... - describes what WaitForTargetFPS, Gfx.ProcessCommands, Gfx.WaitForCommands, Gfx.PresentFrame and Gfx.WaitForPresent are

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question