Re:Pixi3D – 3D rendering library for the web. Built on top o...
by nmfisher on Thursday December 22, 2022 @12:04AM
(#34090030)
I wasn't aware of that (though I don't know why I would be). That's very useful to know. Is this by default on battery, or by default full stop?
Re:Pixi3D – 3D rendering library for the web. Built on top o...
by oplav on Thursday December 22, 2022 @10:07AM
(#34094000)
Our testing showed default full stop.
Re:Pixi3D – 3D rendering library for the web. Built on top o...
by panzerboiler on Thursday December 22, 2022 @02:50AM
(#34090904)
Are you saying that windows ignores the `powerPreference: "high-performance"` setting of the WebGL context creation?
Re:Pixi3D – 3D rendering library for the web. Built on top o...
by oplav on Thursday December 22, 2022 @10:06AM
(#34093982)
Yes, we thought that was strange too but it kind of makes sense if the process is unaware that the GPU exists because of the OS settings.
As an aside, we also discovered that `powerPreference` is only a hint according to the spec, so there's no guarantee that an implementation will adhere to it: https://registry.khronos.org/webgl/specs/latest/1.0/
One issue that we've run into is that by default on laptops, Windows will not use an available discrete GPU in the browser. The only way to work around this is if you go to your power settings (not in the browser) and tell Windows to use the discrete GPU over an integrated one.