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

Change renderer to JavaFX #15

Closed
chillibasket opened this issue Feb 8, 2021 · 1 comment
Closed

Change renderer to JavaFX #15

chillibasket opened this issue Feb 8, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@chillibasket
Copy link
Owner

After trialling the other renderer options available in Processing, I noticed that JavaFX (FX2D) has significantly better performance than the standard renderer. On average, CPU usage was down by 90% and frame rate remained consistent at 60FPS. However, JavaFX has some compatibility quirks which need to be resolved first:

  1. On exit, the window is closed but the process does not exit (it continues as a background process). Implement a proper exit() function to ensure correct closing behaviour.
  2. There is a different method of setting the minimum window dimensions.
  3. The normal File dialogues and SWING popup windows do not interact properly with JavaFX and should be replaced with the native FX variant of the dialogues.
@chillibasket chillibasket added the enhancement New feature or request label Feb 8, 2021
@chillibasket chillibasket self-assigned this Feb 8, 2021
@chillibasket
Copy link
Owner Author

Implemented in commit 458847c. All the identified compatibility quirks have also been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant