Skip to content

update addQuad to take CoreNode instances#726

Merged
jfboeve merged 1 commit intolightning-js:v3/prc-beta-21from
lightning-tv:refactor/addQuadNode
Feb 4, 2026
Merged

update addQuad to take CoreNode instances#726
jfboeve merged 1 commit intolightning-js:v3/prc-beta-21from
lightning-tv:refactor/addQuadNode

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

@jfboeve jfboeve changed the base branch from main to v3/prc-beta-21 February 4, 2026 09:46
@jfboeve
Copy link
Collaborator

jfboeve commented Feb 4, 2026

Merging this with prc-beta21 because there's some canvas stuff that needs to be done, and I want to run some benchmarks with this and 727 in the same base.

@jfboeve jfboeve merged commit 9dfcff4 into lightning-js:v3/prc-beta-21 Feb 4, 2026
1 check passed
jfboeve added a commit that referenced this pull request Feb 4, 2026
Phase 2 - after #726

Removes RenderOps and leaves it on CoreNode. Cleanup property
differences between SDF & CoreNode
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