- Home /
How to increase performance?
I'm working on a topdownshooter and it's going well but I have a problem with performance now. The game itself handles well and I have no problems with it. But when I die and the game over screen (picture underneath. I typed components that might be important behind the gameobjects) pop ups. Then the profiler shows that the fps drop under 15. What might be the case of this? And what do Playerloops, UnityEngine.CoreModule.dll!UnityEngine::StackTraceUtility.ExtractStringFromExceptionInternal(),
BehaviourUpdate,
Update.ScriptRunBehaviourUpdate and Physics2D.Step?
Sorry if my english wasn't spot on and thanks already
Your first screenshot shows a NullReferenceError report at the bottom of the screen. We can't tell from that screenshot alone, but there are a number of reasons why that alone could cause framerate drops.
If the error is being shown regularly (i.e. every frame), error handling is expensive and so is printing to the console (due to the thorough stack tracing, largely).
The NullReferenceError itself could also result in one or more other scripts choking (assu$$anonymous$$g they even continue(d) running), with cascading effects.
If that's not the problem, however, it becomes hard to quantify any particular detail leading to these performance issues without a (potentially) unnecessarily great amount of information.
Your answer
![](https://koobas.hobune.stream/wayback/20220613004913im_/https://answers.unity.com/themes/thub/images/avi.jpg)