pub trait MacFpsExt<R: Runtime> {
// Required methods
fn unlock_fps(&self) -> Result<()>;
fn lock_fps(&self) -> Result<()>;
}Expand description
Extension trait for manual per-webview control of the frame rate cap.
Required Methods§
Sourcefn unlock_fps(&self) -> Result<()>
fn unlock_fps(&self) -> Result<()>
Disable the 60fps cap on this webview, enabling the display’s native refresh rate.
On non-macOS platforms, this is a no-op.