Skip to content

Conversation

@davepagurek
Copy link
Contributor

Resolves #8180

Changes:

  • Turns renderer.filterRenderer into a getter that lazily constructs the renderer if it does not yet exist

This allows the creation of many more 2D graphics than was available in 2.x previously, matching what 1.x could do. It's true that if you were to run a filter on all of them, then you'd still hit the same issue, but that issue was also present in 1.x.

Live test of the fix: https://editor.p5js.org/davepagurek/sketches/dnQ0jgkvU

PR Checklist

Copy link
Collaborator

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@perminder-17 perminder-17 merged commit fbc7f57 into dev-2.0 Oct 22, 2025
5 checks passed
@perminder-17 perminder-17 deleted the lazy-filterrenderer2d branch October 22, 2025 11:48
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