l3mpire / lemverse

The first-ever coworking metaverse
https://app.lemverse.com
GNU Affero General Public License v3.0
149 stars 43 forks source link

Use default value for the powerPreference flag #197

Closed Donorhan closed 1 year ago

Donorhan commented 1 year ago

I think this flag is not necessary anymore. In general when a simulation is visible one prefers to use the best available GPU in order to let the rest of the computer breathe. On some computers it should limit the CPU load and use the GPU (which will do much better)

"Provides a hint to the user agent as to which GPU configuration is suitable for this WebGL context. This can influence which GPU is used in a system with multiple GPUs. For example, a dual GPU system may have a GPU that consumes less power at the expense of rendering performance. Note that this property is only an indication and that a WebGL implementation may choose to ignore it.

WebGL implementations use context loss and restoration events to regulate power and memory consumption, regardless of the value of this attribute."

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