I'll be traveling to Stockholm in a few days to give a University session on JavaFX at Jfokus on January 27, 2009. During that week on January 29-30 I'll also be teaching an intensive two-day class on creating JavaFX applications, with a focus on developing Rich Internet Applications. In the past I've used a rotating cube developed in JavaFX to display static and dynamic (executing JavaFX code) content.
The cube uses the PerspectiveTransform effect to do faux-3D, and was running at around 10 frames per second. I asked Stephen Chin if he could tune it up a bit, and he sent me back a modified program that consistently achieves 60+ FPS on my dual core 2.4 GHz Vista machine. In a later post Stephen and I will point out the optimization techniques used, but for now I wanted to give you a Java Web Start link to try it out:
To see the FPS that the cube is achieving on your machine, take a look at the Java console. It also displays any acceleration type in use. Here's my console output for reference:
Acceleration Type is: Direct3D
Animation FPS: 62
Animation FPS: 64
Animation FPS: 64
Animation FPS: 64
Animation FPS: 64
Animation FPS: 64
Animation FPS: 64
Animation FPS: 64
Animation FPS: 63
Animation FPS: 64
By the way, the presentation slides in the example that you'll be running are dated, but I'll post the actual Jfokus presentation cube on this blog for you shortly after the session. Also, as I mentioned in yesterday's WidgetFX 1.0 post, I'll show you the code for this presentation cube as well as walking through how to tweak the code to convert it into a WidgetFX widget.
Enjoy,
Jim Weaver
JavaFXpert.com
for this there are several tips that have been here all is good to know all that!
Posted by: generic viagra | May 13, 2010 at 11:10 AM
where can I find the code of this example?
Posted by: doktor500 | December 28, 2009 at 12:20 PM
As an experiment one should take a page that uses a normal amount of ads from a popular site. Take the content and make simple placeholder JavaFX/Java applets and replace all the flash ads with those.
And then load the page and see what the difference really is.
A page like that should be made by Sun even, and they should make two versions, one that uses flash, and one that uses Java.
After that, just get the hands dirty optimizing the Java version till it's about as fast as the flash one.
Maybe there's too much prestige for Sun to do something like this publically, I don't know.
Regards, Tommy
Posted by: Tommy | January 12, 2009 at 10:37 AM
- sorry for this not so nice comment but we have to face it -
Even today with 1.6 update 11, the startup time is still much longer than flash player. This is especially a problem when you program applets (can't the just change the horrible name...?) eather from java-Swing or javaFx perpective.
I think JavaFx and java Web service applets can still not be popular among developers with this slow startup.
Sun has to continue to put all of its energie with this dramatic issue.
I mean java 1.6 update 11 wath a "releaf update". It was necessary for javaFx release I think (or javaFx would have been just a joke comparing to Flash ot other rich client technology).
Now if Sun could give us a "wonderfully-fast-startup-jvm-like-Flash-does", perhaps the java client side java-Swing and java-javaFx could be successfull.
bur not before I believe. We hava to face it.
I decided yesterday to stop learning javaFx because of this.
Thierry
Posted by: Thierry | January 12, 2009 at 06:04 AM