Creates a frame pacer that follows the display through a CADisplayLink.
You can call it on any thread. The pacer needs no run loop of yours. On
macOS, it follows the main display, the one with the menu bar.
With FramePacerOptions.maximumFramesPerSecond, the pacer also asks the
system for that refresh rate. On iPhone, a rate above 60 needs
CADisableMinimumFrameDurationOnPhone in the app's Info.plist.
Creates a frame pacer that follows the display through a
CADisplayLink.You can call it on any thread. The pacer needs no run loop of yours. On macOS, it follows the main display, the one with the menu bar.
With
FramePacerOptions.maximumFramesPerSecond, the pacer also asks the system for that refresh rate. On iPhone, a rate above 60 needsCADisableMinimumFrameDurationOnPhonein the app'sInfo.plist.See
mln_apple_frame_pacer_createin the C API reference.Errors:
Status.nativeErrorwhen the system has no display to follow.