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

Small improvements #117

Merged
merged 7 commits into from
Sep 5, 2014
Merged

Small improvements #117

merged 7 commits into from
Sep 5, 2014

Conversation

ponychicken
Copy link
Contributor

By avoiding null transforms we can significantly reduce the amount of canvas calls.
In my project it slashed the number in some scenes by factor ten. Null transforms and needless fill calls are expensive, even though they don't do anything.

Also some improvements to getBoundingRect and the canvas drawing loop as well as a new smoothing param.

This patch significantly reduced the amount of canvas calls in my project.
In some scenes by factor ten. Null transforms and needless fill calls are expensive,
even though they fon't do anything.
Use plain for loop, use direct _x, _y properties where possible.
Set it to false when woking with pixel art. False might lead to better performance, since it would use cheaper interpolation algorithms. It might not make a big difference on GPU backed canvases.
jonobr1 added a commit that referenced this pull request Sep 5, 2014
@jonobr1 jonobr1 merged commit 029af03 into jonobr1:dev Sep 5, 2014
@jonobr1
Copy link
Owner

jonobr1 commented Sep 5, 2014

Awesome finds, thanks!

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