Swing performance on Linux
While profiling a video playback app, I found this at the top of the cpu usage list:
rank self accum count trace method
1 48.69% 48.69% 10576 300390 sun.awt.X11.XToolkit.waitForEvents
Obviously, on linux X11 is the main bottleneck when it comes to animation/video performance. I thought then of using MIT-SHM to improve performance, the problem: I need to use jni and an AWT Canvas. Not only is C not my cup of tea, I prefer hot java. But also, that would mean that I can't draw any swing component on top of the canvas. That's a big problem for my application.
Also, the OGL pipeline doesn't improve much, X11 is not being bypassed, moreover OGL blit seems slower than j2d blit.
I doubt shm is implemented at this moment, however I think it would be good to have it for 6.0 and to be able to turn it on with a flag.