Re: How does generated jogl C code implement gl calls using indirect buffers/java arrays?
Posted by Xerxes Rånby on Jan 27, 2015; 4:21pm
URL: https://forum.jogamp.org/How-does-generated-jogl-C-code-implement-gl-calls-using-indirect-buffers-java-arrays-tp4033925p4033938.html
Den 2015-01-27 17:18, GiGurra [via jogamp] skrev:
> Ok, I'll have a look at it later then.
>
> I achieve reasonable percentages of theoretical pcie transfer speeds
> by just using java arrays, so I don't see any gains by using direct
> buffers (which is a little surprising).
>
Direct buffers are mandatory for stability because it will prevent the
garbage collector to move memory that is in use by the OpenGL library.
If you only try to use java arrays you will run into odd crashes when
the GC moves memory in use by the GL impl.