Overhaul primitive batch rendering