Performance Spikes?


For some reason I am getting this wild spike every 3 frames and I can’t really understand why.

I basically have 2 cameras in my scene, one normal and one that is overhead as a sort of minimap.

FootageWithProfiler

I need some help to analyze why there is this drastic spike. There’s no reason why I shouldn’t have a higher, stable framerate with my low poly game (currently just above 150fps), even with some image effects. I’ve been static batching like crazy and the lighting is all very low quality, intentionally.

So I dunno where more specifically to look.

Very much appreciate the help and do say if I’m missing something. It’s my first time properly optimizing.

Because the timing is so predictable… and your Garbage also mirrors your spikes I suspect you have a coroutine or loop somewhere doing something repeatedly.

Notice your used textures jumps? Are you generating a bunch of stuff? Is you minimap making a new texture every frame? Do you turn some other camera on/off? You really need to open up the Camera.Render section in the profiler and look around.