Page 2 of 2

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Tue Aug 30, 2016 2:11 am
by JohnnyC
At the very least it is a very noticeable improvement when used with anim8.
Image
Image on the left - autobatch off - 40-48 FPS - 6000 bullets on screen.
Image on the right - autobatch on - 87-90 FPS - 9700-9800 bullets on screen.

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Tue Aug 30, 2016 4:01 am
by Positive07
WOW!! Slime any chance/interest this can be built directly into LÖVE?

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Tue Aug 30, 2016 10:34 pm
by slime
Positive07 wrote:WOW!! Slime any chance/interest this can be built directly into LÖVE?
Maybe. Doing something like this in love's own codebase would make it a bit harder to maintain or add to love.graphics without breaking things, and in general it makes it harder to reason about performance issues (because you can't easily tell when you did something to make it flush the batch and do a new draw call). I'd prefer if people just used SpriteBatches. But we'll see. :)

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Tue Aug 30, 2016 10:43 pm
by Positive07
Thanks for the info, I understand what the issues we should look for are and totally see why using SpriteBatches is recommended this much. Also I'm now glad a tool like autobatch exists

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Mon Nov 14, 2016 1:34 pm
by davisdude
I gotta say, this is a really great library. On a project I'm working on, it took it from 15 FPS to a steady 60 with no optimizations on my end. I just required the library and that was it. Really couldn't be easier.

Re: autobatch: Automates the use of SpriteBatches when drawing

Posted: Tue Apr 11, 2017 10:02 pm
by holywyvern
Oh thanks for this, I really was looking for an automatic solution to reduce a container I had (it draws ~400 times, but it may use different sprites at different times and they may change every frame) This changed to 15, so it's really an improvement.