Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


cpuMainThreadPresentWaitTime

The CPU time the last frame spent in waiting for Present on the main thread, in ms.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public double cpuMainThreadPresentWaitTime

Remarks

This is the sum of shown
[wait]
blocks. It includes waits for
Present()
and the target fps. It's harder to show GPU work time because it starts somewhere in the middle of scene rendering and finishes on the next frame's sync point with the previous frame.
Additional Resources: Get frame timing data.