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: add map camera state tracking #84

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

usefulthink
Copy link
Collaborator

Camera state tracking allows the Map component to avoid a feedback-loop when camera values published by the map are fed back into the Map component props.

I measured round-trip times (dispatching an event into the react-application and receiving them back as props) of around 4-5ms. However, there are cases where this roundtrip crosses the frame-boundary, and times more like 20ms can be observed. When this happens, stuttering, janky animations and suboptimal interactions will happen.

Camera state tracking allows the Map component to avoid a feedback-loop when camera values published by the map are fed back into the Map component props.

I measured round-trip times (dispatching an event into the react-application and receiving them back as props) of around 4-5ms. However, there are cases where this roundtrip crosses the frame-boundary, and times more like 20ms can be observed. When this happens, stuttering, janky animations and suboptimal interactions will happen.
@usefulthink usefulthink force-pushed the fix/avoid-camera-feedback branch from 7a162fa to 4d87ae2 Compare November 11, 2023 13:19
@usefulthink usefulthink merged commit 1dc1584 into visgl:main Nov 13, 2023
2 checks passed
@usefulthink usefulthink deleted the fix/avoid-camera-feedback branch November 13, 2023 11:48
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.

2 participants