FPS 40 Problem

Hello everyone, after struggling a bit in my game, I open the game and occasionally I get 40 fps in the game. The only solution is when I exit Unity and enter a new version, the problem is solved, but after a bit of fiddling, I still get the same problems, I don’t know why.

Pictures;
7441832--912290--upload_2021-8-23_17-29-24.png

if i reopen Unity
7441832--912296--gdfgdf.png

7441832--912299--upload_2021-8-23_17-35-28.png

thanks

Performance in the editor isn’t really indicative of a problem.

Make a proper build, attach the profiler and see if the issue still manifests.

DO NOT OPTIMIZE CODE RANDOMLY… always start by using the profiler:

Window → Analysis → Profiler

Optimizing UnityEngine.UI setups:

7448396--913484--dfgdfgfd.png