Re: Hangs and Freezes (JOGL 2.2.4 & 2.3.0, MacOS X Yosemite, JDK 6, 7 & 8, SWT 3.8.2 & 4.4.2)
Posted by Alexis Drogoul on Apr 28, 2015; 6:37am
URL: https://forum.jogamp.org/Hangs-and-Freezes-JOGL-2-2-4-2-3-0-MacOS-X-Yosemite-JDK-6-7-8-SWT-3-8-2-4-4-2-tp4034199p4034392.html
Hi,
Just a small post to say that I actually managed (thanks to your various advices) to have a completely functional reimplementation of our rendering engine on SWT, with no AWT dependencies left. Bye-bye the broken and unreliable "AWT-SWT bridge" !
I discovered some interesting bugs in our own implementation by doing this conversion — this came as an unexpected bonus ! I have only two questions left:
1) One thing that bothered me for some time was that, when resizing views, visual glitches would appear. Setting the "swap interval" to zero (instead of 1 in the examples I had followed) solved this problem, but I wonder whether it is a general fix for SWT-based views or if it is specific to my own hardware — and in the latter case, how to determine the best settings for any given environment ?
2) The port is so clean that I've considered porting our (other) Java2D rendering subsystem to GLG2D, using a SWT canvas instead of an AWT one. Do you think it is easily feasible ? And what is the state of this library, as it doesn't seem to be maintained since 2013...
Thanks again for your feedback — I will more than likely come back to this forum regularly…
Cheers
Alexis