Page 1 of 1

LÖVE 11 draw call batching documentation?

Posted: Tue Apr 17, 2018 3:49 pm
by Ross
Is there any documentation on how the new draw call batching works? Specifically, what breaks a batch?

Re: LÖVE 11 draw call batching documentation?

Posted: Tue Apr 17, 2018 9:33 pm
by slime
The love.graphics.flushBatch wiki page describes it.

Re: LÖVE 11 draw call batching documentation?

Posted: Wed Apr 18, 2018 6:09 am
by raidho36
Batch is broken automatically whenever it is required. Doing it manually just increases amount of draw calls and reduces performance, compared to automatic mode. With that in mind, I'm not even sure why it's there. Placebo effect I guess?

Re: LÖVE 11 draw call batching documentation?

Posted: Wed Apr 18, 2018 8:04 am
by zorg

Re: LÖVE 11 draw call batching documentation?

Posted: Wed Apr 18, 2018 11:54 am
by Ross
Aha! Thanks, slime. So I can change the transform and the color, and draw the same image (or quad pieces of the same image) as much as I want, but that's about it.
  1. Now I can also use any of the line/shape/point drawing functions without breaking the batch, right?
    . . . (arc, circle, ellipse, line, points, polygon, and rectangle.)
  2. But .setPointSize, .setLineWith, etc., will break the batch?

Re: LÖVE 11 draw call batching documentation?

Posted: Wed Apr 18, 2018 3:22 pm
by slime
raidho36 wrote: Wed Apr 18, 2018 6:09 am With that in mind, I'm not even sure why it's there.
Mostly so people can (theoretically) still use raw OpenGL if they really really want to, and are really careful.