Optimized rendering of the timeline

It's now 4-5 times as fast! Yay for math!