title: JavaFX 2 drawing performance
body: <p>I feel that the drawing performance of JavaFX 2 is worse than those of Swing. I think one of the reasons is how you draw things, e.g. when drawing a Line, one has to create a <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/shape/Line.html" rel="noreferrer">Line</a> object for each line and add it to some container while in Swing one just gets the Graphics2D once and then does drawLine without creating a new object each time. So, is there any more performant way to draw using JavaFX 2, e.g. if you have to draw about 3000 Arcs? What's the best "drawing surface"? Currently I am using a <a href="http://docs.oracle.com/javafx/2/api/javafx/scene/Group.html" rel="noreferrer">Group</a>. Thanks for any hint!</p>