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

fix: immediately render for JavaFX #7502

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

BeksOmega
Copy link
Collaborator

The basics

The details

Resolves

Fixes #7444

Proposed Changes

Makes it so that JavaFX always immediately rerenders blocks.

Reason for Changes

JavaFX doesn't handle requestAnimationFrame properly. It draws the frame before callbacks have completed, so we get glitchy jumpy looking blockly.

This change makes it so that JavaFX doesn't use requestAnimationFrame getting rid of the glitchiness. With this, we also sacrifice the performance improvements provided by the render management system.

Test Coverage

Manually tested that this works with the reproduction sample provided in #7444.

Also manually tested that normal in-browser code still uses queueing. (userAgent is working properly)

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega enabled auto-merge (squash) September 18, 2023 20:11
@BeksOmega BeksOmega merged commit f8a134c into google:develop Sep 18, 2023
11 checks passed
@BeksOmega BeksOmega deleted the fix/javafx-rendering branch May 14, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animation rendering glitch on JavaFX WebView in recent releases (not present in v9.2.0)
2 participants