sprite batching optimizer wip