Hi, is GLJPanel hardware acclerated? Thx for reply.
Yes. it uses a pbuffer for hardware acceleration on cards which support it.
GLJPanel is lower than GLCanvas i think. Its possible that i see wrong. I will see again. Thx.
GLJPanel is much slower is some circumstances. I haven’t looked at the implementation but I guess that is does a “read-back” of pixels from an off-screen renderable. Reading pixels from any GL context, native or not, is expensive and is very resolution sensitive. So you could say that it is as fast as GLCanvas + read back penalty. From my own benchmarks I would only recommend it in apps that don’t need to be animated constantly such as editors etc. And it is there it makes sense since it there you need the extra GLJPanel functionality.
// Tomas
Ok, thx for the info. I will use GLCanvas then, i need the fastest way for my applications.
I’ve definitely noticed massive performance differences between the CLCanvas and the GLJPanel.
For me to achieve a translucent window system I had to use JDesktop JInternalFrames. I couldn’t seem to find a way to draw JInternalFrames as heavyweight and hence other windows were were always below my JInternalFrames with a GLCanvas in it, hence my switch to the GLJPanel. If I can find a way to use the GLCanvas instead, i’ll be back in performance heaven. At the moment I’m pretty much buggered the way it is now. Any suggestions?
I don understand exactly your problem, but you can try this:
javax.swing.JPopupMenu.setDefaultLightWeightPopupEnabled(false);
it is a solution for some problems between swing and awt
JDesktop JInternalFrames is probably the only “swing thing” that you can’t get to work with a hevay weight component. The javax.swing.JPopupMenu.setDefaultLightWeightPopupEnabled(false) is only for use with menus afaik.
// Tomas
Well, that’s pretty handy, and typical, isn’t it!
Think of it like this. Frames is big NO NO in HCI(Human Computer Interaction) litterature. The user is busy organizing windows instead of dooing productive work. So If you need them there is probably a better way…
A look on the bright side
// Tomas
Hence their desire for transparency in those windows that overlay the primary view.
Go figure. I didn’t see the connection