Login  Register

Re: jogl and jre8 on macosx

Posted by gouessej on Jul 24, 2014; 8:53am
URL: https://forum.jogamp.org/jogl-and-jre8-on-macosx-tp4032589p4032653.html

I know that in theory using fully hardware accelerated pipeline to draw UIs is easier with OpenJFX / JavaFX than with Swing, its architecture has been designed for this purpose from the bottom. NEWT is "only" a windowing toolkit, it has no widget but there have been already several attempts of rendering Swing components without AWT with NEWT, it can't be compared with OpenJFX which does a lot more.

JavaFX 2 was catastrophic in the real world, especially at the time it was available separately, it caused tons of deployment problems, there are still numerous machines on which it doesn't work at all and you don't know why. Sometimes, under Windows, there is no other solution than reinstalling the JRE :(

As I said in the report, unfortunately, JavaFX has some of the design flaws than AWT / Swing (bad interoperability with other toolkits as you can't really choose which thread to use as an EDT except for Swing when using a private experimental property which can be removed any time) and Java3D (multiple backends, inconsistent performance, very poor 3D features, ...). I have never seen any elaborated GUI working faster after having been ported from Swing to JavaFX, the end result was just more beautiful but neither faster nor less memory intensive. Finally, some AWT code has been copied into OpenJFX / JavaFX, it doesn't help in making it work under AWT-less environments (Android) and as lots of Android smartphones have a better support of ES 1 than ES 2 & 3, OpenJFX / JavaFX would be very slow even on a Samsung S3 like HTML5.

I started learning Java in 2002 and the first alpha version of my main 3D game only uses about 10 MB. Sorry, I use Java to make fast applications with a reasonable memory footprint, it's possible :) One of my very first test of JOGL (pre 1.0) was even between 5 and 15% faster than its C + GLUT equivalent.
Julien Gouesse | Personal blog | Website