Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set high performance as default power preference for three.js webgl renderer #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

macool
Copy link

@macool macool commented Dec 7, 2023

Description

The videojs-vr plugin will instantiate a three.js webgl renderer. This changes the default power preference to be high-performance so that devices can take advantage of GPU acceleration.

See WebGLContextAttributes: https://registry.khronos.org/webgl/specs/latest/1.0/#5.2

Related: #259

Specific Changes proposed

Change default options for three.js webgl renderer so that it uses power preference: high performance.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Unit Tests updated or fixed
    • Docs/guides updated
  • Reviewed by Two Core Contributors

…enderer

set `high-performance` as the default power preference option for three.js webgl renderer

so that browsers enable GPU acceleration
WCPetersen added a commit to WCPetersen/videojs-vr that referenced this pull request Feb 10, 2024
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