Skip to content

Conversation

@chiefcll
Copy link
Contributor

@chiefcll chiefcll commented Jan 21, 2026

Phase one of garbage collection cleanup. addQuad took in a new object which was basically a copy of CoreNode. This creates a lot of objects that need to be cleaned up. Instead simply passing in CoreNode makes more sense.

I'd like to continue cleanup of RenderOps and have CoreNode and SDF match interfaces. I think removing the RenderOp and simply having a draw() call on the CoreNode / SDF would be lot faster.

@jfboeve
Copy link
Collaborator

jfboeve commented Jan 22, 2026

This looks pretty good, I think i've tried this in the past but thought we might run into trouble if the w / h change during runtime since the other values are all "precalculated" in the update loop but w/h come straight out of the props. @wouterlucas thoughts? This does eliminate the creation of an object that is so unnecessary

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