r/JavaFX • • Aug 26 '24

Discussion Do you use FXML?

3 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/OddEstimate1627 Aug 30 '24

Listen, you can twist it any way you want, FXML slows down your application one way or another but no need to argue with stubborn ignorant people

I just remembered having this conversation with you. You some very strong opinions 😜

Are you aware that FXML files can be loaded on a background thread? In my applications, loading the UI usually finishes before setting up other stuff like networking. I've done a lot of performance work, but the potential ~100ms I could save on startup have so far never been worth it.

If you're loading large new scenes on the FXAT while blocking the UI I can see how things can feel sluggish though.

0

u/[deleted] Aug 31 '24

[deleted] — view deleted comment

1

u/OddEstimate1627 Sep 01 '24

No, the application is not AOT compiled. Back then I did some tests to make sure that it is compilable, but the released version in the video uses a standard runtime. 

The main reason for using a jvm is because I'm doing some dynamic runtime compilation based on user input. I could probably make it work with Espresso, but I haven't looked into that yet. 

I assume by "switching scenes" you actually mean switching views?