Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFX 2 Performance Issues (3D)

930555Apr 13 2012 — edited Apr 14 2012
Hello
I am writing an application that generates Rectangle objects, and Lines that connect them. These Nodes are then translated down the Z axis over time using TranslateTransition. These objects are generated at Z=0 every 200 to 500 milliseconds, during which the previously generated sets of Nodes are being translated down the Z axis. The CPU starts getting pegged within a minute or two, and the entire application heap dumps around 95000 Nodes. The big problem is that I likely need at least 10x more Nodes (to expand both X and Z axes), if not more. (Not crushing the CPU would also be nice.)

So, the JavaFX homepage states "JavaFX provides a powerful Java-based UI platform capable of handling large-scale data-driven business applications". However, I have read on a couple blogs that JavaFX seems to be optimized for traditional 2D UIs with lists and tables and such, as well as the JavaFX roadmaps indicating that 'true' 3D support is in the works. I'm using JavaFX 2.0.3 in NetBeans 7.1.1. Is (the current version of) JavaFX suitable for my application, or do I just have the completely wrong approach? Instead of generating N Line objects for each Z instance, would a PolyLine provide substantially better performance? (I intend to try this out shortly.)

My prism.verbose=true output
rism pipeline init order: d3d j2d
Using t2k for text rasterization
Using dirty region optimizations
Prism pipeline name = com.sun.prism.d3d.D3DPipeline
Loading D3D native library ...
succeeded.
OS Information:
Windows XP build 2600
D3D Driver Information:
256MB ATI Radeon X1300PRO
\\.\DISPLAY1
Driver ati2dvag.dll, version 6.14.10.6618
Pixel Shader version 3.0
Device : ven_1002, dev_7183, subsys_0D021028
Direct3D initialization succeeded
(X) Got class = class com.sun.prism.d3d.D3DPipeline
D3DPipeline:getInstance(), d3dEnabled=true
Initialized prism pipeline: com.sun.prism.d3d.D3DPipeline

Win XP SP2 3GB RAM

Thanks

Edited by: 927552 on Apr 13, 2012 12:20 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2012
Added on Apr 13 2012
3 comments
538 views