Skip to content

penStamp() directly to the PenSkin's framebuffer #487

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

Merged
merged 3 commits into from
Dec 11, 2019

Conversation

adroitwhiz
Copy link
Contributor

Proposed Changes

This PR changes RenderWebGL.penStamp to draw directly to the PenSkin's framebuffer, instead of drawing to the query buffer then drawing the query buffer to the PenSkin's framebuffer as it currently does.

Reason for Changes

This improves pen stamp performance by ~2.5-3x, according to this benchmark:

Current This PR
image image

@griffpatch
Copy link
Contributor

Oh man... How I want stamping to be more efficient! +1 for this kind of optimisation!

@thisandagain
Copy link
Contributor

/cc @kchadha @BryceLTaylor @mzgoddard

@griffpatch
Copy link
Contributor

Got to say, of this change is at all possible then I would say it is a wonderful win... Being able to stamp faster would be a just amazing. Optimising the change costume, stamp, change costume, stamp loops to be as fast as possible world improve a lot of projects.

Copy link
Contributor

@fsih fsih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG, thanks!

@fsih fsih merged commit e126468 into scratchfoundation:develop Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants