Unity Issue Tracker - context powerPreference should default to high-performance
Fixed
UUM-7962
context powerPreference should default to high-performance
Unity: Web Platform
WebGL
Fixed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
Won't Fix
2020.3.X
Fixed in: 2023.1.0a10
Fixed in: 2022.2.0b10
Fixed in: 2022.1.19f1
Fixed in: 2021.3.13f1
2020.3 uses a version of emscripten which doesn't support the power preference attribute.
Web browsers moved to change the default WebGL powerPreference from high-performance to low-power (e.g. in Chrome 80). This caused a regression in performance for Unity WebGL content on laptops with two GPUs (a low-power integrated GPU and a dedicated GPU) where now the low-power GPU is selected.
We need to default to selecting the high-power powerPreference, but add an option to the WebGL Player Settings to allow the user to choose a different setting (default or low-power) if their content is more suited.
Users can currently work around this by setting the config['webglContextAttributes'] when calling createUnityInstance from their WebGL template, and we should still respect that setting if set.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?