webamp icon indicating copy to clipboard operation
webamp copied to clipboard

requestAnimationFrame() ticks faster than intended on displays with above 60hz

Open 0x5066 opened this issue 9 months ago • 0 comments

The visualizer depends on requestAnimationFrame() which does not allow to specify a set tickrate to avoid potentially running too fast than is really intended.

https://stackoverflow.com/questions/19764018/controlling-fps-with-requestanimationframe

The answer provides a way to control this and should not exceed the maximum framerate the device is able to produce (such as when in low power mode)

0x5066 avatar Jan 12 '25 18:01 0x5066