Hi all!
I am currently working on a 2D game engine and it is coming together nicely!
But I have some questions regarding VBOs:
Some tutorials talk a lot about interleaving VBOs. I fully understand how this works but I am wondering how necessary it is.
It is mentioned as something that is really important but I don’t really see where the big performance boost is.
I think a render function with separate VBOs for position, texcoord, color etc is more readable than code using interleaving.
So would I be good continuing to use non-interleaved VBOs or is there some really good reason to used interleaving?
Since I’m using spritebatching I am sometimes going to have the following happen:
Draw until the batch is full -> flush the batch by drawing -> rinse an repeat
Can I run into problems with this because I am reusing the same VBO for all rendering?
Like if I put new data into the VBO before the previous rendering is done.
Should I then have a pool of VBOs that I take turns using?