Skip to content

Instantly share code, notes, and snippets.

@glebmachine
Last active February 1, 2024 21:40
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save glebmachine/90248483054be373fb0705f96e366b40 to your computer and use it in GitHub Desktop.
Snippet: Force Safari to switch to discrete GPU
try {
document.createElement('canvas').getContext('webgl', { powerPreference: "high-performance" })
} catch(e) {}
@davidwebca
Copy link

Has anyone noticed that this doesn't seem to work lately? I'm on 17.3 on Sonoma on an Intel mbp 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment