Skip to content

Cap MTKView to 60 FPS on macOS#83

Open
danielraffel wants to merge 1 commit intoVitalAudio:mainfrom
danielraffel:fix/macos-mtkview-60fps-cap
Open

Cap MTKView to 60 FPS on macOS#83
danielraffel wants to merge 1 commit intoVitalAudio:mainfrom
danielraffel:fix/macos-mtkview-60fps-cap

Conversation

@danielraffel
Copy link
Copy Markdown
Contributor

@danielraffel danielraffel commented Mar 1, 2026

On ProMotion displays (MacBook Pro 14"/16"), MTKView defaults to 120 FPS. For UI rendering this doubles GPU usage with no visible benefit — (at least in my current use cases) UI elements don't need to update faster than 60 Hz.

This is especially noticeable for audio plugins where GPU resources are shared with the host application and other plugins running simultaneously.

I presume there are use cases that benefit from higher frame rates, maybe this could be made configurable instead. Happy to adjust the approach.


Discovered while working on a macOS JUCE audio plugin that uses Visage for its UI. This PR was put together with the help of Claude. Completely understand if you'd prefer to close this — just wanted to share the fix since we've been patching around it on our end whenever we update Visage.

On ProMotion displays (MacBook Pro 14"/16"), MTKView renders at 120
FPS by default. For UI rendering this doubles GPU usage with no
visible benefit — UI elements don't need to update faster than 60 Hz.

This is especially relevant for audio plugins where GPU resources are
shared with the host application and other plugins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant