Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualmhagain

Posted 07 November 2012 - 06:40 PM

Hmmm - when I saw the word "box" I automatically assumed a 3D shape (even if projected onto a 2D view), but could you clarify - are you talking "boxes" as I assumed with 6 sides, 8 corners, or are you talking rectangles? I'd withdraw a huge chunk of my previous post if the latter (and happily accept negative rep on it too).

I'm seriously considering abandoning batching altogether at this point and just drawing each box individually (and transforming on the GPU using a uniform matrix passed in). Vertex data and buffer indices remain the same for each draw call. The only thing that would change is the uniform matrix. Thoughts?


Worth benchmarking and seeing how you go. It's incredibly simple to implement and may turn out to be not a problem at all.

#1mhagain

Posted 07 November 2012 - 06:40 PM

Hmmm - when I saw the word "box" I automatically assumed a 3D shape (even if projected onto a 2D view), but could you clarify - are you talking "boxes" as I assumed with 6 sides, 8 corners, or are you talking rectangles? I'd withdraw a huge chunk of my previous post if the latter.

I'm seriously considering abandoning batching altogether at this point and just drawing each box individually (and transforming on the GPU using a uniform matrix passed in). Vertex data and buffer indices remain the same for each draw call. The only thing that would change is the uniform matrix. Thoughts?


Worth benchmarking and seeing how you go. It's incredibly simple to implement and may turn out to be not a problem at all.

PARTNERS