- Home /
Profiler PlayerLoop spikes with no apparent reason
I'm trying to figure out what causes lag spikes in my application. They seem to happen even though I only have a very simple scene. Here are screenshots from the profiler showing a normally working frame and the laggy frame. I can't seem to figure out what causes the long duration of the PlayerLoop in the latter.
Normally working frame Laggy frame
Answer by ShamansDock · Apr 10 at 09:06 PM
'PlayerLoop' can often have lag due to scripts in your scene. If the spikes are appearing consistently every 1-2 seconds, It may be a problem with a particularly expensive coroutine in one of your scripts.
Your answer
Follow this Question
Related Questions
How do I optimize the "Player Loop"? 2 Answers
low FPS when battery is low ( unity android ) 0 Answers
Scene Lag when first running a certain script, but then returns to normal performance afterwards? 1 Answer
How to add delay before showing GUI Button? 3 Answers
will the build have lesser memory usage than how much the profiler shows?? 0 Answers