Re: Renderer.updateTexture2DSubImage...
Posted by
gouessej on
Mar 20, 2018; 8:03pm
URL: https://forum.jogamp.org/Renderer-updateTexture2DSubImage-tp4038649p4038749.html
The use of laptops is just an excuse, it can't be a valid reason to do that. Your code can work but it depends on how you use the frame handler. If Node.onDraw() is called elsewhere, it won't be enough. I'm accustomed with this kind of demand in scientific visualization, it's more a source of problems than a solution. If you really want to avoid drawing when nothing changes, draw the scene into a frame buffer object and use this FBO when there is nothing to update. This approach is much better when compositing, especially when using OpenGL in the GUI. Moreover, as you probably use AWT or Swing, some repaint is repeatedly performed anyway.