Skip to main content

MacFpsExt

Trait MacFpsExt 

Source
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§

Source

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.

Source

fn lock_fps(&self) -> Result<()>

Re-enable the 60fps cap on this webview.

On non-macOS platforms, this is a no-op.

Implementations on Foreign Types§

Source§

impl<R: Runtime> MacFpsExt<R> for Webview<R>

Implementors§