Jump to content

Welcome, Guest!

munikotipradeep

run java faster on raspberry pi

Recommended Posts

I have developed a java application to be run on raspberry pi. In my application, if a user clicks on a particular button, it will switch to a different screen. This is working pretty well on my pc, but on raspberry pi it is taking lot of time to switch to the new screen.


To check which part of the code is utilizing lot of time, I have measured the time taken by different parts of the code. Seems like, its due to loading a new fxml file and display the screen using stage.setScene(scene). So, I think this is causing the problem.


Is there anyway I can reduce time taken to load fxml file and to display the screen?. Kindly help me with this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer

×