FrameTiming
FrameTiming stores timing information about CPU, GPU, and the overall frame time.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.AdaptivePerformance
- Assembly: UnityEngine.AdaptivePerformanceModule
public struct FrameTiming
Properties
Property | Description |
|---|---|
| AverageCpuFrameTime | Returns the main thread CPU time as an average over the past 100 frames (in seconds). Returns |
| AverageFrameTime | The overall frame time as an average over the past 100 frames (in seconds). Returns -1.0f if no timing information is available (for example, in the first frame or directly after resume). |
| AverageGpuFrameTime | Returns the overall frame time as an average over the past 100 frames (in seconds). Returns |
| CurrentCpuFrameTime | Returns the main thread CPU time of the last frame (in seconds). The CPU time includes only time the CPU spent executing Unity's main and/or render threads. Returns |
| CurrentFrameTime | The overall frame time in seconds. Returns |
| CurrentGpuFrameTime | Returns the GPU time of the last completely rendered frame (in seconds). Returns |