Super cute and fun, and impressive for this size!!
(for some reason, it's ~1 fps on my Firefox, but perfect on Chrome)
Thx.
I found out why firefox has 1fps!
The game uses two 8000x8000 pixel OffscreenCanvases, one for the background and one for the racetracks (and the skidmarks) from which I draw the cameraview to the main canvas.
The gecko-engine from Firefox sadly has performance issues when using big canvases, i found this explanation: "Firefox often experiences performance issues with large HTML5 canvases (e.g., 10000x10000 pixels) compared to Chromium-based browsers, often suffering from low FPS and high CPU usage. This is largely due to Firefox's rendering engine (Gecko) copying the entire surface to a backbuffer upon updates, which becomes costly at high resolutions."
I tried it with a much smaller OffscreenCanvas (1000x1000px) and it was almost as fast as in Chrome. I will try to fix this in a post-jam version, likely using multiple smaller background-canvases instead of huge ones.