improved performance by adding batching to get rid of wasted draw calls.