Update the browser, editor, settings, and installer

This commit is contained in:
Knotty Wyvern
2026-10-12 14:46:21 -07:00
parent 909894b9c8
commit f6eaa52949
163 changed files with 146260 additions and 534 deletions
+12
View File
@@ -0,0 +1,12 @@
/** Bound frames in flight so image decoding cannot delay browser input. */
export class FrameDelivery {
sequence = 0;
pending = new Map();
canSend(time = performance.now()) {
for (const [id, started] of this.pending) if (time - started > 250) this.pending.delete(id);
return this.pending.size < 2;
}
sent(time = performance.now()) { const id = ++this.sequence; this.pending.set(id, time); return id; }
acknowledge(id) { this.pending.delete(id); }
clear() { this.pending.clear(); }
}