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

@@ -1,11 +1,22 @@
<script setup lang="ts">
import { useWindowSize } from "@vueuse/core";
import gsap from "gsap";
import { LazyLagModal } from "#components";
const { isReady } = useAssets();
const app = useAppStore();
const overlay = useOverlay();
const lagModal = overlay.create(LazyLagModal);
watch(
() => app.lagDetected,
(detected) => {
if (detected) lagModal.open();
},
);
const topScreen = useTemplateRef("topScreen");
const bottomScreen = useTemplateRef("bottomScreen");