Skip to content

Update WebGlRenderer.ts #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

chiefcll
Copy link
Contributor

These are never undefined, they are set to false by default making this always return false

These are never undefined, they are set to false by default making this always return false
@wouterlucas
Copy link
Contributor

Tests seems to disagree - either there is an implicit assumption somewhere, or the type definition is off.

@chiefcll
Copy link
Contributor Author

You're welcome to look into it -
public parentHasRenderTexture = false;
rtt: false,

Probably both are off - essentially no Ops are being reused, this change will make some be reused. Might be faster / easier to just not check and always create new render ops - but it's leading to high GC.

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