im getting huge lag spikes when testing game in editer.

here’s an image of the lag spikes. I’ve looked around for a while now and I haven’t found anything that fixes it. I Don’t know exactly what information Is needed in the initial question for you guys to help, but if you tell me, all provide whatever is needed.

One this I find confusing is that it says it took 4034ms, but there wants a 4 second lag spike, just maybe like 300ms. I don’t know why that would be, but I’m new to this profiler stuff. I could really use some help with this.

Hi, is it only on your Editor, or do the lag spikes happen in Build as well?

Looking at the timeline in the image you sent, just seems like there is a process that is making everything else wait, can you find which one is causing that wait in the timeline?

Interestingly, the problem was caused for a variety of reasons. First of which is the fact that I have a rather old CPU. That was exacerbated by the fact that the editor, and more specifically the profiler, were taking up approximately 60% of my CPU’s processing power. When I created the build it was much better. However, it still lagged for another reason. I was attempting to do too many calculations/ instantiate too many game objects, in one frame. And to add to all that, I didn’t have VSync on, which made my CPU max out, and it wasn’t capable of handling the sudden increase in workload.