A fast way to building a scene with a lot of (complex) nodes
906177Dec 30 2011 — edited Jan 9 2012Hi all!
I'm searching for a way to put a scene together really fast. The scene will display maps with up to 7000 items and maybe more and every item will be a node with a complex structure, i.e. to display certain shapes. Currently I use the SVGPath class to extract the paths of an SVG image to create an item.
As of now I'm only able to display a map with around 92 items and it will be displayed around 3-5 seconds. If I would try to display a map with 7000 of those items it would take maybe 30-40 secounds.
At first I used the VisualLibrary Framework of Netbeans. It is based on Swing. The advantage in swing for me was building a really lightweighted component (only drawing the component). It didn't have any complex hierarchie and so the map would appear in an instant. But the big drawback of the library is, that it does a lot of validating and therefore in action it is really slow if I try animation with a big map (with like 7000 items).
I tested JavaFX and it still has a fluid animation with 2000 animated items at the same time. That's the reason why I have decided to use JavaFX for the map.
Now is there a way to build some kind of really lightweighted node, i.e. simple drawing on a node or can I speed up the building process of a scene ?
Thanks in advance for you help.