This content has been marked as final. Show 6 replies
The javafx 1.3 doesn't have good performance when the application get's huge.
I had also made a Software from javafx 1.3 which was really big which need to be run in browser. At first it was very slow and finally I've optimized many codes and graphics then the javafx ran smoothly. If you are developing some high graphics games then optimize the codes , use bind only when needed and there are so many things to be considered. I think you probably need to divert in JavaFX 2.0 .
Thank you for the response. The weird part is that the game runs smoothly when launched from command line or from Netbeans. Would you happen to know why rnning via JNLP or the browser would slow it down?
This does not make too much sense to me because it is the same code, jar file, and JVM. The only thing I can fathom is that when the JVM executes code via an applet or JNLP that it has access to less system resources. I have even removed stuff from the game to just test it out and still the frame rate looks less.
I am concerned that converting to javafx2.0 will not fix it unless I understand first what is going on.
Further more details of performance tweak on javafx 1.3:
- use 'def' instead of 'var'
- load the images instance initially
- less use of Effects like : Reflect, Dropshadow
- Use Two shapes objects instead of stroke on any shape object.
- Avoid the depth code tree .
- don't use smooth graphics while on animation.
- Use Multi-thread with Async Task.
- Use layout than absolute position bindings