- Home /
Performance spikes
Hi!
I'm developing an endless-runner type of game for mobile, and i get very inconsistent performance, it often drops 10-15 FPS and looking at the profiler, i'm still not any closer to the solution:
as you can see every 15-40 frames, i get a spike, which is 2-3 frames long, whereas, on average the CPU and GPU renderer need about 1/4 less time, i'm far from instantiating objects this often, so i have little to no idea what is causing the problem. Any help would be really appreciated.
This thread has a few suggestions you might look into
Is anything unique happening on those frames? Depending on how you create chunks, Unity might sometimes need to load and send extra data to the GPU.
nothing unique is in those frames, i don't have anything sheduled and i'm creating chunks every 140 frames or so, so i don't think that would be the main problem, also i read that thread and i gave up on ever solving the problem with gfx.WaitforPresent, but it's not (only) the is the problem Camera.Render's time also quadruples, look at the GPU Lane, average opaque render takes 1.8-2.0 ms this one takes 6.4ms. The Same thing in the CPU Lane Camera.render takes 0.6-0.8 while on this frame it took 2.7
Your answer
Follow this Question
Related Questions
Rendering overhead on Android 0 Answers
How to get OpenGL frame capture under XCode in Unity4? 0 Answers
Is waitforseconds in a coroutine related to sephamore.WaitForSignal? 2 Answers
Performance issue: Camera.Renderer - Drawing - ... - Clear needs 50% CPU ??? 2 Answers
Terrible Lag When Starting a Scene Which Eventually Resolves Itself... Graphics Card Issue or Unity? 1 Answer