Version: 2023.2
LanguageEnglish
  • C#

FrameTiming

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Struct containing basic FrameTimings and accompanying relevant data.

Properties

cpuFrameTimeThis is the total CPU frame time calculated as the time between ends of two frames, which includes all waiting time and overheads, in ms.
cpuMainThreadFrameTimeTotal time between start of the frame and when the main thread finished the job, in ms.
cpuMainThreadPresentWaitTimeThe CPU time the last frame spent in waiting for Present on the main thread, in ms.
cpuRenderThreadFrameTimeThe frame time between start of the work on the render thread and when Present was called, in ms.
cpuTimeFrameCompleteThis is the CPU clock time at the point GPU finished rendering the frame and interrupted the CPU.
cpuTimePresentCalledThis is the CPU clock time at the point Present was called for the current frame.
firstSubmitTimestampThis is the CPU clock time of the time when the first job was submitted to GPU.
frameStartTimestampThis is the CPU clock time of the time when the frame was started.
gpuFrameTimeThe GPU time for a given frame, in ms.
heightScaleThis was the height scale factor of the Dynamic Resolution system(if used) for the given frame and the linked frame timings.
syncIntervalThis was the vsync mode for the given frame and the linked frame timings.
widthScaleThis was the width scale factor of the Dynamic Resolution system(if used) for the given frame and the linked frame timings.