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

@ -1064,7 +1064,7 @@ const soundboardPlugin: Plugin = {
if (state.currentResource?.volume) state.currentResource.volume.setVolume(safeVol);
}
persistedState.volumes[guildId] = safeVol;
writeState();
writeStateDebounced();
sseBroadcast({ type: 'soundboard_volume', plugin: 'soundboard', guildId, volume: safeVol });
res.json({ ok: true, volume: safeVol });
});