Small performance boost

Lighting: Now only calls Begin and End once per light, instead of once
per vertex per shadow.

Main: Fixed VSync.

SpriteSheet: Fixed small memory leak.