summaryrefslogtreecommitdiff
path: root/tools/mq_editor/index.html
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-18 17:33:42 +0100
committerskal <pascal.massimino@gmail.com>2026-02-18 17:33:42 +0100
commit5df09ec975568a233e62d0be071fa9725d6b5aac (patch)
tree9a57de71708ec3de477de1f0461312c11637d829 /tools/mq_editor/index.html
parent37d7601ab64e0dd22ca3e579c3b8332d32c41b9a (diff)
perf(mq_editor): move playhead to overlay canvas, avoid full render on tick
setPlayheadTime() now updates only the playhead overlay and spectrum panel instead of triggering a full renderSpectrogram() every rAF tick. handoff(Gemini): playhead is now an overlay canvas (like cursorCanvas), no more O(n_frames) redraw during playback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tools/mq_editor/index.html')
-rw-r--r--tools/mq_editor/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/mq_editor/index.html b/tools/mq_editor/index.html
index 4292a5f..49a9869 100644
--- a/tools/mq_editor/index.html
+++ b/tools/mq_editor/index.html
@@ -332,6 +332,7 @@
<div style="position: relative;">
<canvas id="canvas" width="1400" height="600"></canvas>
<canvas id="cursorCanvas" width="1400" height="600" style="position:absolute;top:0;left:0;pointer-events:none;"></canvas>
+ <canvas id="playheadCanvas" width="1400" height="600" style="position:absolute;top:0;left:0;pointer-events:none;"></canvas>
<!-- Mini spectrum viewer (bottom-right overlay) -->
<div id="spectrumViewer" style="position: absolute; bottom: 10px; right: 10px; width: 400px; height: 100px; background: rgba(30, 30, 30, 0.9); border: 1px solid #555; border-radius: 3px; pointer-events: none;">