12 minutes
Frame-Rate Smoothing
The lab
This course goes further into two lessons of Endless Rampage Highway: 1.3, Follow Camera, and 1.9, Sparks and Screen Shake. It grants no credits, because you already own RoadCamera and RoadFX from the series.
Every lesson starts from the finished highway, the series' last scene. Download it:
It lands in public/scenes/EndlessHighway/scene.json. Copy that file over your src/scenes/endlessrampage.json and reload. If the tuning panel still holds values from the series, open it with the backquote key and press Reset.
Lesson 1.3 asked catchUp about three screens and got the same camera on each. This lesson takes apart the one-liner it replaced, lerp(a, b, 0.1). You will measure how wrong it is, and see why 1 − e^(−rate·dt) is the fix that also survives a stalled frame.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.