Version: 2022.2

FrameTiming

struct in UnityEngine

切换到手册

描述

包含基本 FrameTimings 并且随附相关数据的结构。

变量

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.
cpuTimeFrameComplete这是 CPU 时钟时间,此时 GPU 完成了帧渲染并且中断了 CPU。
cpuTimePresentCalled这是 CPU 时钟时间,此时为当前帧调用了 Present。
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.
gpuFrameTime给定帧的 GPU 时间(单位为 ms)。
heightScale这是用于给定帧和关联帧计时的动态分辨率系统(如果使用)的高度缩放因子。
syncInterval这是用于给定帧和关联帧计时的 vsync 模式。
widthScale这是用于给定帧和关联帧计时的动态分辨率系统(如果使用)的宽度缩放因子。