What is Gfx.WaitForPresent?

It’s causing spikes on profiler, what is it?

This worked for me.

To remove the spike in your profiler lower your target framerate using something like:

Application.targetFrameEate = 60;


Application.targetFrameEate = 30;

Also have vsync disabled in quality settings.

On mobile, the max framerate is 60fps, so if your game is running faster than that in the editor Gfx.waitforpresent can show a big hit in the profiler while it trys to slow down. Strange though that explicitly setting it lower makes the spike disappear, but I can guarantee this works on my end.