2D Toolkit Forum

2D Toolkit => Support => Topic started by: pan_henryk on March 26, 2015, 11:57:40 am

Title: Large sprite batcher optimizations?
Post by: pan_henryk on March 26, 2015, 11:57:40 am
Hi,

I am using sprite batcher in our project with great results. Now I am wondering about some optimizations for large sprite batchers.
Would it be reasonable (for drawing speed optimization on older devices) to divide large batchers into two or more smaller ones based on:

- distance of new item to existing batcher
- current batcher height or width
- batcher item count

Thanks,

Jakub
Title: Re: Large sprite batcher optimizations?
Post by: unikronsoftware on March 26, 2015, 06:15:53 pm
On older devices I think the most likely bottleneck will be sprite overdraw....
I don't think splitting into larger batchers would give you better performance there unless you were draw call bound.
Title: Re: Large sprite batcher optimizations?
Post by: pan_henryk on March 27, 2015, 10:56:13 am
I had the same thoughts about batchers and overdraw.

Thanks!