autobatch icon indicating copy to clipboard operation
autobatch copied to clipboard

Love2D 11.0 compatibility

Open Ristovski opened this issue 8 years ago • 1 comments

Even though 11.0 added automated sprite batching,your implementation appears faster - 86FPS vs 77FPS for cats demo.

I understand that it would not make a big difference in normal non-benchmark use-cases but better performance is always welcome.

However, it appears that in 11.0 setBufferSize (used here) no longer exists, so removing the whole 'increase spritebatch capacity if already reached' is needed for 11.0.

Are you only planning on maintaining autobatch for pre-11.0 versions of Love2D?

Ristovski avatar Apr 05 '18 11:04 Ristovski

Thanks for letting me know!

I'd read about the new batching in 11.0 — while autobatch still gives a performance improvement, and assuming it isn't too much hassle, it may be worth supporting it. Some of the color values would also have to be changed as it uses the 0..255 range in at least one place internally. I haven't switched over to 11.0 yet, though, so can't make the change yet as I wouldn't be able to test it, but I'll probably look into it when I do switch over.

rxi avatar Apr 08 '18 14:04 rxi