By bloid
via learnjavafx.typepad.com
Published: Jan 07 2009 / 15:34
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:
Comments
Gregg Bolinger replied ago:
Mmmmm, spinning cubes. See a lot of those in RIAs do we?
Jim Weaver replied ago:
Good to hear from you, Gregg! This uses PerspectiveTransform which for now is the way in JavaFX to simulate 3D. I do see a lot of use of perspective in RIA. Also, I wanted to highlight performance, as my prior experience (in a former post on the presentation cube) was that the PerspectiveTransform was expensive in terms of CPU cycles. By the way, I'd be interested on what your Acceleration Type, FPS, and machine are, as I want to give feedback to the JavaFX team on performance. That's going to be a critical factor in the RIAs that users will come to expect.
Thanks again, and I do remember fondly the hospitality extended to me in the Java Ranch book giveaway. That was much appreciated!
Thanks,
Jim Weaver
http://JavaFXpert.com
Voters For This Link (20)
Voters Against This Link (0)