Prefer high gpu performance

fix multiple gpu scenario
This commit is contained in:
Daniel Maixner 2022-12-23 12:35:59 +01:00
parent 9944c72d94
commit 93c48e0e38

View File

@ -41,7 +41,9 @@ export class World {
camera.add(listener, povItem)
this.#soundListener = listener
const glParameters = {}
const glParameters = {
powerPreference: 'high-performance',
}
if (!setting.shouldPreferPerformance()) {
glParameters.antialias = true
}