Open
Description
Browsers are moving to change the default WebGL powerPreference from high-performance
to low-power
(e.g. coming soon in Chrome 80). In practice this change of default means that some users (with 2 GPUs) might see the lower-end one used, and for something like a game engine that could be noticeably slower.
When creating the WebGL context, perhaps Emscripten should default to high-performance
? I'd guess most of our users are running higher-end content. However, I'm not totally happy about such a change either, as browsers are preferring the opposite in general.
Other options:
- Just document this more.
- Add a commandline option to make it easier to force
high-performance
, instead of writing the extra code to call the C API for context creation and setEmscriptenWebGLContextAttributes.powerPreference = EM_WEBGL_POWER_PREFERENCE_HIGH_PERFORMANCE
. - Emit a warning in ASSERTIONS mode if
high-performance
is not set, but by default that's likely excessive.
Thoughts?