文档

Unity Engine

Unity Engine

cpuMainThreadPresentWaitTime

The CPU time the last frame spent in waiting for Present on the main thread, in ms.
阅读时间1 分钟最后更新于 1 个月前

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.