From b068426e9f231ab43bc3db0e70655fb5df450eac Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 1 Feb 2026 14:08:57 -0600 Subject: [PATCH] Rewrite VinylPanel with WebGL2 for performance - Use WebGL2 canvas for vinyl rendering instead of CSS - Load qbz-vinyl-v3.svg as texture - Shader-based rotation when playing - Parallax effect via uniforms (no DOM updates) - Album cover slides left to reveal vinyl - Much lower CPU usage than CSS animation --- .../immersive/panels/VinylPanel.svelte | 389 +++++++++++------- 1 file changed, 233 insertions(+), 156 deletions(-) diff --git a/src/lib/components/immersive/panels/VinylPanel.svelte b/src/lib/components/immersive/panels/VinylPanel.svelte index 151ccdb4e..74f0d62e9 100644 --- a/src/lib/components/immersive/panels/VinylPanel.svelte +++ b/src/lib/components/immersive/panels/VinylPanel.svelte @@ -1,4 +1,5 @@
-
- -
-
- - {#each grooves as i} -
- {/each} +
+ + - -
-
-
-
-
- - -
-
-
- - +