From: Kenneth B. R. <kbr...@al...> - 2001-12-11 05:09:38
|
> Also, I wish to speed up the GLJPanel with new API in JDK1.4 > (e.g. the VolatileImage class and the java.nio package). > GL4Java developers have any plan at this point? I think the way to get more speed out of GLJPanel is to avoid the pixel copy that is occurring now, by keeping track of where the GLJPanel is within the component hierarchy, clipping the OpenGL rendering region appropriately, and drawing directly to the heavyweight component to take advantage of hardware acceleration. This won't work if the component is partially occluded, but that rarely happens and the system could revert back to the current pixel copy in that case. I'm pretty sure this technique was used in the now-defunct Magician Java binding for OpenGL and is discussed in the author's book: http://www.symbolstone.org/technology/java/nmbook/ |