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

Merge recent MRs #139

Merged
merged 36 commits into from
Dec 7, 2021
Merged

Merge recent MRs #139

merged 36 commits into from
Dec 7, 2021

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Oct 17, 2021

Merge #131, #132, #134, #135, #137, #138, WofWca#1

This is so you don't have to worry about merge conflicts.

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.
Reduce the amount of checks
This changes behavior a bit - when `render(` is passed a canvas different
from `this.canvas`
and when the user calls `render` manually with a custom `time` argument
…der time

It would depend on `scrollBackwards` and `fillStyle` being `undefined` or not.
Depending on this, it would either continue the line up to the edge of the
canvas or leave it at `lastX`. This makes it so that it is always left at
`lastX`.
…tore()`"

This reverts commit f7b488e.

For some reason in Chromium 95.0.4638.54 (and maybe others) that change
caused `render()` CPU time to grow over time. For me on the
`examples/example1.html` page it would grow from 0.5ms to 50ms over 5 minutes
@drewnoakes drewnoakes merged commit e9b2d51 into joewalnes:master Dec 7, 2021
@drewnoakes
Copy link
Collaborator

Thank you so much! I've merged this and will get a release out soon.

@drewnoakes drewnoakes mentioned this pull request Dec 7, 2021
1 task
@drewnoakes
Copy link
Collaborator

Version 1.36.0 has been published. Please take a look and let me know if you see any issues.

https://www.npmjs.com/package/smoothie

Thanks again 🙏

@WofWca WofWca deleted the recent-mrs branch December 13, 2021 14:21
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