Repository navigation
Releases
Releases · userFRM/tauri-plugin-macos-fps
v0.1.0
Initial release
Tauri v2 plugin that unlocks >60fps rendering on macOS by disabling WKWebView's requestAnimationFrame cap.
Features
- Automatically disables the 60fps cap on all webviews via
PreferPageRenderingUpdatesNear60FPSEnabled - Manual per-webview control via
MacFpsExttrait (unlock_fps()/lock_fps()) - Configurable via
tauri.conf.json - No-op on non-macOS platforms
Safety
respondsToSelector:checks before all private API callscatch_unwindin allwith_webviewclosures to prevent panics from crossing FFI boundaries- Graceful degradation: if the private API is unavailable, the app continues at 60fps with a log warning
Install
[dependencies]
tauri-plugin-macos-fps = "0.1"