More work on batch renderer.