Last active
February 1, 2024 21:40
Star
You must be signed in to star a gist
Snippet: Force Safari to switch to discrete GPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
document.createElement('canvas').getContext('webgl', { powerPreference: "high-performance" }) | |
} catch(e) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Has anyone noticed that this doesn't seem to work lately? I'm on 17.3 on Sonoma on an Intel mbp 🤔