ezekielaquino / Marquee3000

Marquees for the new millenium
https://ezekielaquino.com/2019/marquee
MIT License
438 stars 81 forks source link

Monitor refresh rate changes scroll speed #17

Open leptest opened 6 years ago

leptest commented 6 years ago

Increasing monitor refresh rate from 60hz to 120hz or from 120hz to 240hz roughly (or maybe exactly) doubles the scrolling speed.

Arm1stice commented 5 years ago

This is because the library uses window.requestAnimationFrame, which syncs animation to the monitor's refresh rate. In order to implement a static amount of movement, a custom interval would need to be defined, and the animation function would only move the marquee after a certain amount of time has passed.