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

[Animation] Choppy animations, especially on higher refresh rates #380

Closed
Tajmoti opened this issue Jan 23, 2022 · 5 comments
Closed

[Animation] Choppy animations, especially on higher refresh rates #380

Tajmoti opened this issue Jan 23, 2022 · 5 comments
Labels
6.0 - Iridium Release 6.0 - 2022.H2

Comments

@Tajmoti
Copy link
Contributor

Tajmoti commented Jan 23, 2022

Version of Radiance (latest development is 6.0-SNAPSHOT)

6.0-SNAPSHOT

Sub-project (Common, Animation, Theming, Component, ...)

Animation

Version of Java (current minimum is 9)

Any

Version of OS

Any

The issue you're experiencing (expected vs actual, screenshot, stack trace etc)

Expected:

Animations should be as smooth as possible by default

Actual:

The DefaultPulseSource uses 40 ms as the delay between pulses. This arbitrary delay is pretty large and it causes animations to be a bit choppy on high refresh-rate monitors.

I don't find the hardcoded 40 ms to be a good default. I propose to derive the default delay from the connected display refresh rate.

@Tajmoti
Copy link
Contributor Author

Tajmoti commented Jan 23, 2022

I've made a video to compare the behavior before and after the change in the PR.
Focus on the dropdown menu - the highlighting of items skips noticeably in the window on the left.

I set timelineDuration to zero to better show the effect, but it's very noticeable even with animations enabled.

output.mp4

@kirill-grouchnikov kirill-grouchnikov added the 6.0 - Iridium Release 6.0 - 2022.H2 label Mar 15, 2022
@kirill-grouchnikov
Copy link
Owner

PR merged. Thanks!

@kirill-grouchnikov kirill-grouchnikov added the Breaking change Marking changes that break backwards compatibility label Mar 16, 2022
@kirill-grouchnikov
Copy link
Owner

Marking as breaking change since this has removed the existing public API.

@Tajmoti
Copy link
Contributor Author

Tajmoti commented Mar 16, 2022

What public API has this removed? The only removed class is DefaultPulseSource, which was private in RadianceAnimationCortex.

@kirill-grouchnikov
Copy link
Owner

@kirill-grouchnikov kirill-grouchnikov removed the Breaking change Marking changes that break backwards compatibility label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.0 - Iridium Release 6.0 - 2022.H2
Projects
None yet
Development

No branches or pull requests

2 participants