Version: 2023.2
LanguageEnglish
  • C#

FrameTimingManager

class 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

The FrameTimingManager allows the user to capture and access FrameTiming data for multiple frames.

The FrameTimingManager is always active on Development Player builds. To use this feature for other build types, go to Edit > Project Settings > Player and enable the Frame Timing Stats property. The FrameTimingManager also depends on the Dynamic Resolution feature and so is only supported on platforms that support Dynamic Resolution.

Static Methods

CaptureFrameTimingsThis function triggers the FrameTimingManager to capture a snapshot of FrameTiming's data, that can then be accessed by the user.
GetCpuTimerFrequencyThis returns the frequency of CPU timer on the current platform, used to interpret timing results. If the platform does not support returning this value it will return 0.
GetGpuTimerFrequencyThis returns the frequency of GPU timer on the current platform, used to interpret timing results. If the platform does not support returning this value it will return 0.
GetLatestTimingsAllows the user to access the currently captured FrameTimings.
GetVSyncsPerSecondThis returns the number of vsyncs per second on the current platform, used to interpret timing results. If the platform does not support returning this value it will return 0.
IsFeatureEnabledCheck if frame timing statistics are enabled.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961