Login  Register

Re: A new binary build available soon

Posted by gouessej on Aug 30, 2021; 10:53am
URL: https://forum.jogamp.org/A-new-binary-build-available-soon-tp4038575p4041229.html

Hello

Yesterday, I discovered that the data mode "VBO interleaved" doesn't do what is expected. Let's suppose that you have some vertices with colors and normals, an interleaved VBO should look like this:
VNCVNCVNCVNC

but it looks like this:
VVVVNNNNCCCC

Its only advantage is the use of a single VBO identifier but I see no performance gain. Moreover, even when interleaved VBOs are implemented correctly, they aren't faster in all cases. Finally, this feature breaks some formats, especially MD2.

That's why I'll remove this feature very soon, it's misleading, brings an hypothetical performance gain, is buggy and complicates the engine. It would be very tricky to implement correctly and the solution wouldn't be very flexible.

In my humble opinion, what matters the most is the size of the data. Interleaved VBOs may marginally reduce the number of OpenGL calls but I no longer expect a consistent speedup from them.
Julien Gouesse | Personal blog | Website