Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javafx lag #157

Open
Ellieyee opened this issue Oct 31, 2019 · 3 comments
Open

Javafx lag #157

Ellieyee opened this issue Oct 31, 2019 · 3 comments

Comments

@Ellieyee
Copy link

Environment

Issue

I'm currently using panes to switch between certain displays. However, in the process of switching/displaying the panes, there is a significant lag (10s) during this process. I've confirmed that this isn't due to the generate() function as my logger (both before and after the function call) updates almost immediately.

Code/Log Trace

image

@damithc
Copy link
Collaborator

damithc commented Oct 31, 2019

I've confirmed that this isn't due to the generate() function as my logger (both before and after the function call) updates almost immediately.

Just to be sure, you can comment out that line and try again to see if that makes a difference.

@Ellieyee
Copy link
Author

commented out and tested. It seems to still be occurring but less frequent.

@tuandingwei
Copy link

Could it be because:

  1. Certain execution takes some time to run?? i.e. code might not be efficient
  2. getChildren() adds to the delay

If the delay is from the switch command, you might want to trace your code from the switch.
If this happens when you start the app, this might mean that certain code is taking too long to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants