Login  Register

Re: Understanding issue with automatic buffer swapping

Posted by Xerxes Rånby on Mar 06, 2017; 8:32am
URL: https://forum.jogamp.org/Understanding-issue-with-automatic-buffer-swapping-tp4037728p4037736.html

You want to invert the logic on line #L287 of GL4RenderSystem and use
        if (!canvas.getAutoSwapBufferMode())
so that your buffers will get swapped when you have disabled automatic buffer swapping.

https://gitlab.com/ghost-in-the-zsh/sage2/blob/master/src/ray/sage2/rendersystem/gl4/GL4RenderSystem.java#L287


After fixing that you can remove all the workaround swap logic from GenericSceneManager
Remove lines 517-522.
https://gitlab.com/ghost-in-the-zsh/sage2/blob/master/src/ray/sage2/scene/generic/GenericSceneManager.java#L517-522

Cheers
Xerxes