Skip to content

Commit

Permalink
set high performance as default power preference for three.js webgl r…
Browse files Browse the repository at this point in the history
…enderer (videojs#284)
  • Loading branch information
WCPetersen committed Feb 10, 2024
2 parents 2566968 + 836c16c commit 96f2413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ void main() {
devicePixelRatio: window.devicePixelRatio,
alpha: false,
clearColor: 0xffffff,
antialias: true
antialias: true,
powerPreference: 'high-performance'
});

const webglContext = this.renderer.getContext('webgl');
Expand Down

0 comments on commit 96f2413

Please sign in to comment.