Re: Poor Performance with glVertexAttribPointer
Posted by
Sven Gothel on
Jan 15, 2014; 12:48am
URL: https://forum.jogamp.org/Poor-Performance-with-glVertexAttribPointer-tp4031170p4031224.html
On 01/14/2014 10:50 PM, bgroenks96 [via jogamp] wrote:
> Sven Gothel wrote
> Reason is, glBufferData recreates the GPU memory 'slot' !
>
> So that's what causes the memory leak?
>
> When is it appropriate then to make the glBufferData(..., ..., null, ...)
> call? Isn't it supposed to tell the driver to discard the previously held
> buffer data?
yes, sure - recreate == dispose+create
Haven't said anything about a leak.
But recreation takes more time for memory management
where glBufferSubData simply updates the content.
Thought this discussion was about performance ..
~Sven