Umbrella issue for text layout optimization.
Investigation ofRT-5001 has revealed that text-layout under JavaFX is much slower than under a pure Java app. I've attached a small suite of standalone test cases that demonstrate this. Results on my machine (Vista on a MBP) are as follows:
JTextLayout.java (pure Java/Swing): ~275fps
SwingTestLayout.fx (FX, embedded Swing: ~220fps
TextLayout.fx (pure FX using Text node): ~22fps
One cause for this has been found,RT-5069.
Some notes on running the tests:
* To get fps data for the FX version(s), you'll need:
* to point -Djava.util.logging.config.file= to the attached logging.properties
AND
* a Soma build which includes theRT-4959 fix OR a Soma/Marina build w/ a diff similar to:
http://jfxsrc.sfbay.sun.com/javafx/soma/scrum/graphics/runtime/rev/557f74ded7ac
* To get framerates > ~70 for the embedded Swing test (SwingTextLayout.fx), you'll need to increase the javafx framerate with something like:
-Djavafx.animation.framerate=500
Investigation of
JTextLayout.java (pure Java/Swing): ~275fps
SwingTestLayout.fx (FX, embedded Swing: ~220fps
TextLayout.fx (pure FX using Text node): ~22fps
One cause for this has been found,
Some notes on running the tests:
* To get fps data for the FX version(s), you'll need:
* to point -Djava.util.logging.config.file= to the attached logging.properties
AND
* a Soma build which includes the
http://jfxsrc.sfbay.sun.com/javafx/soma/scrum/graphics/runtime/rev/557f74ded7ac
* To get framerates > ~70 for the embedded Swing test (SwingTextLayout.fx), you'll need to increase the javafx framerate with something like:
-Djavafx.animation.framerate=500
- blocks
- 
                    JDK-8099369 Guimark in JavaFX runs at ~4 fps -           
- Resolved
 
-         
- is blocked by
- 
                    JDK-8099445 Scene@MouseHandler.pick() is not efficient -           
- Closed
 
-         
- relates to
- 
                    JDK-8108234 Resizing/laying out Text is way slower if the mouse cursor is over the window -           
- Closed
 
-