FrameStats Struct
Contains timing statistics for a single frame. More...
Declaration
Public Member Attributes Index
| float | totalFrameTime = 0.0f |
|
Total frame time in seconds. More... | |
| float | workTime = 0.0f |
|
CPU processing time in seconds. More... | |
| float | waitTime = 0.0f |
|
Idle time in seconds. More... | |
Description
Contains timing statistics for a single frame.
This structure holds detailed timing information about a frame's execution, including work time (actual CPU processing) and wait time (idle time from frame pacing).
All time values are specified in **seconds**.
Definition at line 19 of file FrameStats.ixx.
Public Member Attributes
totalFrameTime
|
Total frame time in seconds.
The sum of workTime and waitTime. Represents the complete duration of the frame from start to synchronization. This value corresponds to the `deltaTime` used for game logic. Total frame time in seconds.
Definition at line 27 of file FrameStats.ixx.
waitTime
|
Idle time in seconds.
The time spent sleeping/waiting by the FramePacer to maintain the target frame rate. This is 0.0f if no frame pacing is active or if the frame took longer than the target time. Idle time in seconds.
Definition at line 44 of file FrameStats.ixx.
workTime
|
CPU processing time in seconds.
The actual time spent executing frame logic, rendering, and other computational tasks before synchronization. CPU processing time in seconds.
Definition at line 35 of file FrameStats.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.