Login  Register

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 gouessej on Apr 28, 2015; 10:09am
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-tp4034199p4034394.html

Hi

Alexis Drogoul wrote
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 !
It's an excellent piece of news :)

Alexis Drogoul wrote
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 ?
Please look at our bug tracker, I wonder if there is already a bug report for this bug. Sometimes, the driver doesn't allow you to enable or disable the v-sync.

Alexis Drogoul wrote
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...
It's feasible but risky and not totally trivial. You should contain its maintainer of this library to know exactly what is going on.

Alexis Drogoul wrote
Thanks again for your feedback — I will more than likely come back to this forum regularly…

Cheers
Alexis
You're welcome.
Julien Gouesse | Personal blog | Website