buffers wrapping arrays

Started by Qudus, February 03, 2008, 12:24:40

Previous topic - Next topic

Qudus

hi

Has anyone done performance tests for DirectFloatBuffers vs. FloatBuffers wrapping a float array? I would not expect a significant difference, since the gl-commands taking buffers are rare compared to the ones taking primitive values. But I want to make it sure. Is this a difference for the GL-nio calls?

Marvin

elias

LWJGL supports wrapped buffers by copying them to a cached direct buffer, so direct buffers are always faster when making lwjgl calls. I don't know how significant the performance difference is, though.

- elias

Qudus

Quote from: elias on February 03, 2008, 13:26:03
LWJGL supports wrapped buffers by copying them to a cached direct buffer, so direct buffers are always faster when making lwjgl calls. I don't know how significant the performance difference is, though.

ok, thanks.

Marvin