perf: cache static walls, fast-path sprite draws, cache canvas rect (0.9.1, v57)

This commit is contained in:
Quintine committed 2026-08-13 13:11:16 +10:00
1 parent 6cc8132046
commit d60baa6b29
8 files changed
+84 -47

No files matched your search

+1
View File
@@ -105,6 +105,7 @@ function fitCanvas() {
const k = Math.min(window.innerWidth / W, window.innerHeight / H) * 0.97;
canvas.style.width = Math.floor(W * k) + 'px';
canvas.style.height = Math.floor(H * k) + 'px';
if (Input.updateRect) Input.updateRect();
}
function resetRun() {