Skip to content

Commit 96f2413

Browse files
committed
set high performance as default power preference for three.js webgl renderer (videojs#284)
2 parents 2566968 + 836c16c commit 96f2413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,8 @@ void main() {
659659
devicePixelRatio: window.devicePixelRatio,
660660
alpha: false,
661661
clearColor: 0xffffff,
662-
antialias: true
662+
antialias: true,
663+
powerPreference: 'high-performance'
663664
});
664665

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

0 commit comments

Comments
 (0)