Batch draw grid lines to save rendering calls