A manager type that queries display characteristics, such as high refresh rate capabilities. More...
#include <FlutterVSyncClient.h>
Class Methods | |
| (double) | + displayRefreshRate |
Properties | |
| BOOL | maxRefreshRateEnabledOnIPhone |
Whether the max refresh rate on iPhone ProMotion devices are enabled. This reflects the value of CADisableMinimumFrameDurationOnPhone in the info.plist file. On iPads that support ProMotion, the max refresh rate is always enabled. | |
| double | displayRefreshRate |
| The maximum display refresh rate used for reporting purposes. This is intended to return either the hardware maximum refresh rate or the maximum configured by the user (e.g. via an Info.plist setting or custom configuration). The engine does not care about this for frame scheduling. It is only used by tools for instrumentation. The engine uses the duration field of the link per frame for frame scheduling. | |
A manager type that queries display characteristics, such as high refresh rate capabilities.
Provides static properties to check whether dynamic refresh rates are supported on the device and to get the display's maximum refresh rate (either the hardware maximum or the maximum configured by the user).
Definition at line 17 of file FlutterMetalLayer.mm.
| + (double) displayRefreshRate |
References display_link_target, displayRefreshRate, and maxRefreshRateEnabledOnIPhone.
|
readnonatomicassign |
The maximum display refresh rate used for reporting purposes. This is intended to return either the hardware maximum refresh rate or the maximum configured by the user (e.g. via an Info.plist setting or custom configuration). The engine does not care about this for frame scheduling. It is only used by tools for instrumentation. The engine uses the duration field of the link per frame for frame scheduling.
Definition at line 52 of file FlutterVSyncClient.h.
Referenced by displayRefreshRate, and flutter::VsyncWaiterIOS::VsyncWaiterIOS().
|
readnonatomicassign |
Whether the max refresh rate on iPhone ProMotion devices are enabled. This reflects the value of CADisableMinimumFrameDurationOnPhone in the info.plist file. On iPads that support ProMotion, the max refresh rate is always enabled.
Definition at line 18 of file FlutterMetalLayer.mm.
Referenced by displayRefreshRate, and flutter::VsyncWaiterIOS::VsyncWaiterIOS().