Closed AAGaming00 closed 4 years ago
This switches to transform for height calculations, offloading that work to the gpu. It also switches from setInterval to requestAnimationFrame to sync with redraws and avoid redrawing twice, increasing preformance and FPS more.
transform
setInterval
requestAnimationFrame
preview: https://img.bigdumb.gq/ShareX/2020/09/l8p9V6SmQf.mp4 (i accidentally paused it for a sec lol)
These changes look great. Good work, especially with the gpu offloading. Give me a few to test your stylesheet changes and I'll merge.
Thanks for contributing!
This switches to
transform
for height calculations, offloading that work to the gpu. It also switches fromsetInterval
torequestAnimationFrame
to sync with redraws and avoid redrawing twice, increasing preformance and FPS more.preview: https://img.bigdumb.gq/ShareX/2020/09/l8p9V6SmQf.mp4 (i accidentally paused it for a sec lol)