LÖVE 11 draw call batching documentation?

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

LÖVE 11 draw call batching documentation?

Post by Ross » Tue Apr 17, 2018 3:49 pm

Is there any documentation on how the new draw call batching works? Specifically, what breaks a batch?

User avatar
slime
Solid Snayke
Posts: 2761
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: LÖVE 11 draw call batching documentation?

Post by slime » Tue Apr 17, 2018 9:33 pm

The love.graphics.flushBatch wiki page describes it.

User avatar
raidho36
Party member
Posts: 1666
Joined: Mon Jun 17, 2013 12:00 pm

Re: LÖVE 11 draw call batching documentation?

Post by raidho36 » Wed Apr 18, 2018 6:09 am

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: 2249
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: LÖVE 11 draw call batching documentation?

Post by zorg » Wed Apr 18, 2018 8:04 am

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
Prole
Posts: 2
Joined: Tue Mar 13, 2018 12:12 pm

Re: LÖVE 11 draw call batching documentation?

Post by Ross » Wed Apr 18, 2018 11:54 am

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: 2761
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: LÖVE 11 draw call batching documentation?

Post by slime » Wed Apr 18, 2018 3:22 pm

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 6 guests