hackclub / sinerider

💖 A game about love and graphing, built by teenagers.
https://sinerider.com
GNU Affero General Public License v3.0
568 stars 47 forks source link

Make Sinerider playable on Firefox #562

Closed jorendorff closed 1 year ago

jorendorff commented 1 year ago

This PR makes "catching-up" code in tick() unconditional, so that even if we miss a frame, physics keeps ticking along at normal speed.

This is necessary in Firefox, because there Canvas rendering is happening on the CPU. (I am still trying to figure out why that's the case.)

This addresses #547 enough that the game is playable (though very choppy) on high-pixel-density displays.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
sinerider ✅ Ready (Inspect) Visit Preview May 17, 2023 2:35pm
polytroper commented 1 year ago

Awesome work, thanks so much. Sorry for the slow review here, I have been busy moving into a new house.