LÖVE 11 draw call batching documentation?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Ross
Citizen
Posts: 97
Joined: Tue Mar 13, 2018 12:12 pm
Contact:

LÖVE 11 draw call batching documentation?

Post by Ross »

Is there any documentation on how the new draw call batching works? Specifically, what breaks a batch?
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: LÖVE 11 draw call batching documentation?

Post by slime »

The love.graphics.flushBatch wiki page describes it.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: LÖVE 11 draw call batching documentation?

Post 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?
User avatar
zorg
Party member
Posts: 3436
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: LÖVE 11 draw call batching documentation?

Post by zorg »

Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Ross
Citizen
Posts: 97
Joined: Tue Mar 13, 2018 12:12 pm
Contact:

Re: LÖVE 11 draw call batching documentation?

Post 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?
User avatar
slime
Solid Snayke
Posts: 3131
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: LÖVE 11 draw call batching documentation?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests