What does the JavaFx 1.2 scene graphics update do?

My first question =). I am writing a video game with a user interface written in JavaFx. The behavior is correct, but I have performance issues. I'm trying to figure out how to figure out what is waiting for updates that slow down the application.

I have a relatively complex scene graph, which is a hexagonal map. It scales so that there can be 100 or 1000 hexagons on the map. As the number of hexagons increases, the sensitivity of gui decreases. I used YourKit (Java Profiler) to track these delays for basic redraw operations.

I spent most of the night trying to figure out how to do two things and understand one thing:

1) The reason CustomNode prints something to the console whenever it is painted. This will help me pinpoint when these paints are in line.

2) Determine when CustomNode is placed in the redraw queue.

If I answered 1 and 2, I could find out what it is that connects all these different nodes together. Is it possible that JavaFX only works through global updates (doubtful)?

+3
source share
3 answers

JavaFX script is a powerful user interface language, but some methods will kill performance. The best performance usually comes down to:

  • saving a small scene of a scene

  • ( , )

.

. 1.2.1, Node, println, , . forums.sun.com

+3

. , . , , .

, IDE JavaFx 1.2. , , . Eclipse . FX Netbeans, Eclipse, , .

Eclipse, Java, . . Mac, Jars /Library/Frameworks/JavaFX.framework/Versions/1.2

. , . /Library/Frameworks/JavaFX.framework/Versions/1.2/src.zip.

, Java Decompilier. , Eclipse 3.4: http colon_//java dot decompiler _dot free.fr/(< - , psudo, , )

. Core FX , . , .

:

JVM arg:

-Djava.util.logging.config.file =/////logging.properties

, :

handlers = java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level = ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter com.sun.scenario.animation.fps.level = ALL

, . FX 1.2 , 1.2.1 ( 9 2009 ). Netbeans, 1.2.1.

+1

You can read this article.

http://fxexperience.com/2009/09/performance-improving-insertion-times/

In principle, inserts in the scenario graph are slow, and the benefits can be seen by adding inserts

+1
source

Source: https://habr.com/ru/post/1717214/


All Articles