perf: cache static walls, fast-path sprite draws, cache canvas rect (0.9.1, v57)
This commit is contained in:
1 parent
6cc8132046
commit
d60baa6b29
8 files changed
+84
-47
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user