LWJGL Forum

Programming => OpenGL => Topic started by: Qudus on February 03, 2008, 12:24:40

Title: buffers wrapping arrays
Post by: Qudus on February 03, 2008, 12:24:40
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
Title: Re: buffers wrapping arrays
Post by: 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.

- elias
Title: Re: buffers wrapping arrays
Post by: Qudus on February 03, 2008, 13:39:26
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