Re: Custom Raster
Posted by JeanPhi on Feb 18, 2014; 2:18pm
URL: https://forum.jogamp.org/Custom-Raster-tp4031610p4031629.html
The workaround test basically works. The CPU is much lower than using JCanvas3D.
Now the bad news. The CPU is still very high (about 70% of a core for a 1500x1000 px scene @40FPS)
There are four methods which consume most of the CPU:
1. jogamp.opengl.gl4.GL4bcImpl.dispatch_glReadPixels1 (native)
2. javafx.scene.canvas.GraphicsContext.getBuffer()
3. jogamp.opengl.x11.glx.GLX.dispatch_glXMakeContextCurrent0 (native)
4. jogamp.opengl.gl4.GL4bcImpl.dispatch_glFinish1 (native)
I did not expect JOGL to consume so much :S
Maybe the problem is at Java3D level. When I'm in offscreen mode, there is no more automatic scene rendering. I have to call renderOffScreenBuffer() each time to render.
Is there a way to force the scene to be rendered automatically?
JP