Skip to content
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

Fix: Culler not accurately culling objects #10123

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Fix: Culler not accurately culling objects #10123

merged 2 commits into from
Jan 19, 2024

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Jan 17, 2024

No description provided.

@Zyie Zyie self-assigned this Jan 17, 2024
@Zyie Zyie added the v8 label Jan 17, 2024
Copy link

codesandbox-ci bot commented Jan 17, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1e0896f:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie linked an issue Jan 17, 2024 that may be closed by this pull request
// dont process children if not needed
if (
!container.cullableChildren
|| !container.visible
Copy link

Choose a reason for hiding this comment

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

I think this is incorrect. Even when a container is culled with container.visible = false, it's children's visibility must still be set independently for culling to work correctly.

Copy link
Member

Choose a reason for hiding this comment

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

heya! thanks for pointing out - this should be fine - as visibility is cascaded down the scene graph when we do the transform update.

Copy link
Member

@GoodBoyDigital GoodBoyDigital 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!

// dont process children if not needed
if (
!container.cullableChildren
|| !container.visible
Copy link
Member

Choose a reason for hiding this comment

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

heya! thanks for pointing out - this should be fine - as visibility is cascaded down the scene graph when we do the transform update.

@Zyie Zyie merged commit cc79f25 into next-v8 Jan 19, 2024
4 checks passed
@Zyie Zyie deleted the fix/culling branch January 19, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: v8.0.0-rc.4 Culler does not work?
3 participants