All of this tips about performance to me sounds like javafx is way too expensive/inefficient, the things being displayed are not that complicated, you shouldn't have to drop to canvas for every little thing or "don't modify the scenegraph because everything gets recomputed". Sounds much inferior than a browser in rendering capabilities.
Reducing DOM manipulations is a very standard bit of browser programming advice. ReactJS and friends advertise reducing the amount the DOM is changed as a primary benefit of their entire framework! The FX scene graph is not particularly slow but like changing the DOM in a web app, if there's a ton of elements on screen it will cost you.
It really is. JavaFX can't even keep the app content in sync with the window width/height without graphical glitching. Web browsers have done that for years without issue.
5
u/RandomName8 Jan 10 '19
All of this tips about performance to me sounds like javafx is way too expensive/inefficient, the things being displayed are not that complicated, you shouldn't have to drop to canvas for every little thing or "don't modify the scenegraph because everything gets recomputed". Sounds much inferior than a browser in rendering capabilities.