From bf5ebbc454540c12f6516f9fb9b6f87823a786b8 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Tue, 3 Mar 2026 08:24:51 -0600 Subject: [PATCH] added webGPU flag --- src/vrApp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vrApp.ts b/src/vrApp.ts index 3ecf1f7..727461b 100644 --- a/src/vrApp.ts +++ b/src/vrApp.ts @@ -20,7 +20,8 @@ import {DefaultScene} from "./defaultScene"; import {Introduction} from "./tutorial/introduction"; import {PouchData} from "./integration/database/pouchData"; -const webGpu = false; +const webGpu = new URLSearchParams(window.location.search).has('webGPU'); +console.log(`Rendering backend: ${webGpu ? 'WebGPU' : 'WebGL'}`); log.setLevel('debug', false); export default class VrApp {