DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Java
  4. Speeding up the JavaFX Presentation Cube for Jfokus

Speeding up the JavaFX Presentation Cube for Jfokus

James Weaver user avatar by
James Weaver
·
Jan. 08, 09 · Interview
Like (0)
Save
Tweet
Share
7.00K Views

Join the DZone community and get the full member experience.

Join For Free

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.

jfokus-pres-screenshot-small

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:

webstartsmall2

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

JavaFX

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Monolithic First
  • How To Choose the Right Streaming Database
  • DevOps for Developers: Continuous Integration, GitHub Actions, and Sonar Cloud
  • Introduction to Spring Cloud Kubernetes

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: