FrancisTR / Rhythm-Swipe

A Repository dedicated to the 2D Game "Rhythm Swipe".
https://projectrhythmswipe.netlify.app/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Red/blue cubes stuck at 10fps with resistFingerprinting #36

Closed FrostyNick closed 11 months ago

FrostyNick commented 12 months ago

Describe Firefox Browsers with resistFingerprinting set to true have getAudioContext().currentTime updated once every 100ms. This results in red/blue cubes being capped at 10 fps. There are probably ways around this. Such as checking the value every 1 / 6 times.

To Reproduce Steps to reproduce the behavior:

  1. Use a Firefox-based browser.
  2. Go to about:config, search for resistFingerprinting, and click the button on the right side. Click this again to disable resistFingerprinting. (There's probably a better way to do this.)
  3. In the game, play any round: Easy, Normal, Hard difficulty
  4. The red/blue cubes look choppy, since they're capped at 10 fps. Everywhere else, it's 60fps.

Expected behavior Red/blue cubes should move smoothly.