Spread out GL state tracking, dramatically improving performance.