Skip to content

Conversation

@pcuste1
Copy link
Collaborator

@pcuste1 pcuste1 commented Oct 8, 2025

What is changing?

Limit the number of repeated calls made to update the _target and _fov traitlets

Why is this needed?

When aladin-lite updates its view, it does so with a smooth animation which updates the fov and target at intervals between the starting and final values to create a smooth animation. This causes issues for attached listeners on the ipyaladin traitlets that are updates as they get triggered for every intermediary value. By limiting to just updating on the final values we can avoid these extra calls.

This is particularly important for reducing the jitter between ipyaladin and imviz when syncing as see in the demo below. As you can see in the demo, its still not perfect, but its greatly improved thanks to this change.

Before:

before-updating-fix.mov

After:

after-fix.mov

@pcuste1 pcuste1 self-assigned this Oct 8, 2025
@pcuste1
Copy link
Collaborator Author

pcuste1 commented Oct 8, 2025

After discussions with Celia and Tom, I'm going to close this PR for now. This does provide a small improvement, but when my recent changes to jdaviz are pulled in, the small improvement isn't as noticeable as in the demo. This will be good to keep in our back pocket for later

@pcuste1 pcuste1 closed this Oct 8, 2025
@pcuste1 pcuste1 deleted the jitter-reduction branch October 9, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants