creating a batching system for the renderer, unfinished