diff --git a/app/components/Screen.vue b/app/components/Screen.vue index 25d8ad2..ba68fc8 100644 --- a/app/components/Screen.vue +++ b/app/components/Screen.vue @@ -59,11 +59,11 @@ const renderFrame = (timestamp: number) => { const start = Date.now(); // render - ctx.clearRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT); - ctx.save(); ctx.scale(SCREEN_SCALE, SCREEN_SCALE); + ctx.clearRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT); + const sortedCallbacks = Array.from(renderCallbacks.entries()) .sort((a, b) => a[1] - b[1]) .map(([callback]) => callback);