feat(3d-nds): lag detection

This commit is contained in:
2026-02-24 16:17:43 +01:00
parent 187cc8d574
commit 2d4210b031
6 changed files with 78 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ export const useAppStore = defineStore("app", {
camera: null as THREE.Camera | null,
hintsVisible: false,
hintsAllowed: false,
lagDetected: false,
};
},
@@ -65,6 +66,7 @@ export const useAppStore = defineStore("app", {
setRenderingMode(mode: Settings["renderingMode"]) {
this.ready = mode === "2d";
this.settings.renderingMode = mode;
if (mode === "3d") this.lagDetected = false;
this.save();
},