Revert "Smooth realtime display frame pacing"

This reverts commit a8e9729b3a.
This commit is contained in:
Mikei386 committed 2026-08-05 20:54:33 +02:00
1 parent 96d323c32d
commit ab19798a2d
5 files changed
+20 -59

No files matched your search

+2 -8
View File
@@ -2698,20 +2698,14 @@ async function loop(now){
const currentAudioSeq = Math.max(currentMetricsSeq, currentVisualsSeq, currentXySeq);
const audioDirty = currentAudioSeq > lastRenderedAudioSeq;
const shouldRenderFrame =
audioOk ||
renderDirty ||
audioDirty ||
!audioOk ||
style === 'options-panel' ||
style === 'recorder' ||
renderStyle === 'clock';
// With live audio, requestAnimationFrame itself is the display clock. An
// additional exact 60 Hz comparison occasionally rejected a real 60 Hz
// frame because of fractional timestamp jitter, creating 33 ms pauses in
// otherwise smooth peak decay. Only throttle the disconnected state.
const frameDue = audioOk || elapsed >= target;
if (frameDue){
lastFrameTime = audioOk ? now : now - (elapsed % targetMs);
if (elapsed >= target){
lastFrameTime = now - (elapsed % targetMs);
try{
updateRect();
meterHitRects.length = 0;