文档

Unity Engine

Download Unity

Unity Engine

TimeUpdate.WaitForLastPresentationAndUpdateTime

Native Player loop system that waits for the previous frame to be presented and then updates the engine time for the new frame.
阅读时间1 分钟最后更新于 5 天前

Definition

public struct TimeUpdate.WaitForLastPresentationAndUpdateTime

Remarks

When Unity renders and presents frames, this system waits until the graphics device presents the previous frame, then uses that timestamp to update the Time values for the new frame. In batch mode, or when the current frame doesn't render, Unity uses the time since startup instead.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.