misc performance boosts

Fixed a bug where the program would lag when moving the timeline over an
area with no frames, reduced number of stencil buffers to 1, and
fine-tuned the number of triangles drawn per circle.