Some rendering speed improvments.

Also added Batching struct and interface. (WIP)