Fix: Volume-Slider reaktionsschneller (Latenz reduziert)

- Server: writeState() → writeStateDebounced() im Volume-Endpoint
  (kein synchroner Disk-Write bei jedem Slider-Tick mehr)
- Frontend: Debounce von 120ms auf 50ms reduziert

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-09 23:58:02 +01:00
parent 25e47fb093
commit 7ed6b81584
4 changed files with 4 additions and 4 deletions

View file

@ -1009,7 +1009,7 @@ export default function SoundboardTab({ data, isAdmin: isAdminProp }: Soundboard
if (volDebounceRef.current) clearTimeout(volDebounceRef.current);
volDebounceRef.current = setTimeout(() => {
apiSetVolumeLive(guildId, v).catch(() => {});
}, 120);
}, 50);
}
}}
style={{ '--vol': `${Math.round(volume * 100)}%` } as React.CSSProperties}