Skip to content

Conversation

@chiefcll
Copy link
Contributor

@chiefcll chiefcll commented Jan 3, 2026

Resetting update type should be done at top of the loop as nodes can change values during the render cycle and can be redrawn on the next frame.

@chiefcll
Copy link
Contributor Author

chiefcll commented Jan 3, 2026

Fixes #670

@jfboeve
Copy link
Collaborator

jfboeve commented Jan 5, 2026

There's an issue with this fix as it does not go through the vrt till the end.

Copy link
Contributor

@wouterlucas wouterlucas left a comment

Choose a reason for hiding this comment

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

Is your initial creation out of bounds and is it not being processed correctly before you put it on screen?

updateType &= ~UpdateType.RenderBounds; // remove render bounds update
return;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing this? This will force part of the tree that are out of bounds to continue to be processed, which essentially is wasteful as those parts aren't visible (hence take performance).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This snippit makes lines 1271 unreachable. TS warns about it you're just using this.renderState rather than renderState. This prevents nodes from updating that were out of bounds and coming into bounds.


// reset update type
this.updateType = 0;
this.childUpdateType = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this help exactly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #670

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