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: this.delay not being respected with nonRealtimeData: true #137

Merged

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Oct 8, 2021

and when the user calls render manually with a custom time argument

TODO:

  • Merge fix: chart constantly jumping in 1-2 pixel steps #131 as this is based on that.
  • Think about whether the change is actually for the better - maybe it's more intuitive that if you use nonRealtimeData that there is no delay, and if you're manually calling render() with custom time that you've also factored the delay you want into the time argument.

The issue is noticeable at `millisPerPixel` being between ~ 0.5 & 2.0 the size
of `requestAnimationFrame` period. Canvas image update period would be
inconsistent - some would last longer, some less, some would get skipped
altogether.
and when the user calls `render` manually with a custom `time` argument
@WofWca WofWca force-pushed the fix-delay-for-custom-render-time branch from 754047f to bc27bb2 Compare October 8, 2021 05:46
@WofWca WofWca mentioned this pull request Oct 17, 2021
@drewnoakes drewnoakes merged commit ccc831d into joewalnes:master Dec 7, 2021
@WofWca WofWca deleted the fix-delay-for-custom-render-time branch December 13, 2021 14:27
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