for a project I’m working on, I need to integrate JOGL with the framework of the project that’s already been developed. If I create a GLJPanel, I can do everything I need to and life seems good. Except for one thing: speed! My computer, with just drawing a black background, gets 26fps max just throwing out blank display() calls. If I change that GLJPanel to a GLCanvas, whammo I’m over 1000fps. However, if I use the GLCanvas, the JMenu that goes across the top gets messed up because when I click on an item, the drop down box gets drawn over by the GLCanvas and I can’t click on the items.
Weston helped explain to me that Canvas is heavyweight and swing components are lightweight and that’s where my problem lies, so I wonder, do I have any options with Swing components in JOGL where I can have an accelerated component to use? I can’t get away from the Swing components everywhere in the background. My job is just to put my little component on the screen drawing pretty 3D things. I just wish I could have it play nice AND get decent performance at the same time!
Any advice for me?