dancinlife commited on
Commit
8eb16c8
·
1 Parent(s): bdaaaa3

tune: bump tick to 60fps (TICK_MS 33 → 16)

Browse files
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -129,8 +129,8 @@
129
  // ─────────────────────────────────────────────────────────────────────────
130
  // Config
131
  // ─────────────────────────────────────────────────────────────────────────
132
- const TICK_MS = 33; // ~30 fps
133
- const HIST_LEN = 250; // rolling buffer length (~8 s of history at 30 fps)
134
  const BINS = 12; // entropy histogram bins
135
  const VRANGE = 1.5; // value range [-VRANGE, +VRANGE]
136
  const MIN_FOR_METRICS = 50;
@@ -281,7 +281,7 @@ function drawScatter(L, R) {
281
  }
282
 
283
  // ─────────────────────────────────────────────────────────────────────────
284
- // Tick — runs at ~30 fps via setInterval
285
  // ─────────────────────────────────────────────────────────────────────────
286
  function tick() {
287
  const c = parseInt(slider.value, 10) / 100;
 
129
  // ─────────────────────────────────────────────────────────────────────────
130
  // Config
131
  // ─────────────────────────────────────────────────────────────────────────
132
+ const TICK_MS = 16; // ~60 fps
133
+ const HIST_LEN = 250; // rolling buffer length (~4 s of history at 60 fps)
134
  const BINS = 12; // entropy histogram bins
135
  const VRANGE = 1.5; // value range [-VRANGE, +VRANGE]
136
  const MIN_FOR_METRICS = 50;
 
281
  }
282
 
283
  // ─────────────────────────────────────────────────────────────────────────
284
+ // Tick — runs at ~60 fps via setInterval
285
  // ─────────────────────────────────────────────────────────────────────────
286
  function tick() {
287
  const c = parseInt(slider.value, 10) / 100;