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:
parent
25e47fb093
commit
7ed6b81584
4 changed files with 4 additions and 4 deletions
|
|
@ -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 });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue