Skip to content

GTAOPass: Replace visibility cache Map with an array for improved performance #31454

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

Merged
merged 2 commits into from
Jul 20, 2025

Conversation

querielo
Copy link
Contributor

The concept is similar to what's described here: #31453

@Copilot Copilot AI review requested due to automatic review settings July 20, 2025 15:45
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes the GTAOPass visibility caching mechanism by replacing a Map data structure with an array to improve performance during visibility state management. The change focuses on reducing overhead when temporarily hiding specific object types (points, lines) during rendering.

  • Replaces Map-based visibility cache with array-based storage
  • Modifies cache population to only store objects that need visibility changes
  • Updates restoration logic to use simple array iteration instead of scene traversal

@Mugen87 Mugen87 added this to the r179 milestone Jul 20, 2025
@Mugen87 Mugen87 merged commit 8e3fd3c into mrdoob:dev Jul 20, 2025
8 checks passed
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