Ask coding questions

← Back to all posts
Canvas animation starts stuttering after time

I am trying to make an emergency alert simulator, and to do so I need to make scrolling text in a canvas, and I did that, but about 20-30 seconds in, the frames start to become noticeable and it makes a stuttering effect. I am using window.requestAnimationFrame which many examples use, and they don't have the same stuttering effect.