Search Issue Tracker
Fixed
Fixed in 2021.3.13f1, 2022.1.19f1, 2022.2.0b10, 2023.1.0a10
Unknown (hidden) 2020.3.X
Votes
0
Found in
2023.1.0a1
Issue ID
UUM-7962
Regression
No
[WebGL] context powerPreference should default to high-performance
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.
See:
https://forum.unity.com/threads/force-the-use-of-dedicated-gpu.1115851/
https://github.com/emscripten-core/emscripten/issues/10000
https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.2.1
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.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Element UI disappears and NullReferenceException is thrown when dragging off the last or first element from the list in the Inspector
- [Silicon] Crash on ScriptableRenderLoopJob when machine is left idle while the Editor is in Play mode
- [Android] GraphicsBuffer.CopyCount does not work with Append Compute Buffer after Compute Shader Dispatch on some Android devices
- "DirectoryNotFoundException" error when building a project via script in one folder, then building via Editor in another, deleting the folder built via Editor and rebuilding via Script
- New items are created and old ones remain in memory when using 'treeView.SetRootItems(items)' and 'treeView.Rebuild()' which can cause a memory leak
Resolution Note (fix version 2023.1.0a10):
Fixed in: 2023.1.0a10
Resolution Note (fix version 2022.2.0b10):
Fixed in: 2022.2.0b10
Resolution Note (fix version 2022.1.19f1):
Fixed in: 2022.1.19f1
Resolution Note (fix version 2021.3.13f1):
Fixed in: 2021.3.13f1
Resolution Note (2020.3.X):
2020.3 uses a version of emscripten which doesn't support the power preference attribute.