Skip to content

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