Skip to content

EMSUSD-4033 - Improve object selection in large stages - #4707

Open
AramAzhari-adsk wants to merge 1 commit into
devfrom
azharia/EMSUSD-4033/Improve-Object-Selection-Large-Scene
Open

EMSUSD-4033 - Improve object selection in large stages#4707
AramAzhari-adsk wants to merge 1 commit into
devfrom
azharia/EMSUSD-4033/Improve-Object-Selection-Large-Scene

Conversation

@AramAzhari-adsk

Copy link
Copy Markdown
Collaborator

By default, most common render items participate in consolidation

_SetWantConsolidation(*renderItem, true);

This change excludes the highlights. This makes it very quick to highlight items, but with the trade off of slower movement in very large scenes. However it is justified as the non consolidation slowdown is acceptable. The highlight selection is a common user interaction and can easily freeze the DCC for a dozen seconds. Now that is reduced to only a second or two.

For small to medium sized stages, the actions are instant.

@AramAzhari-adsk AramAzhari-adsk self-assigned this Aug 20, 2026
@AramAzhari-adsk
AramAzhari-adsk requested review from deboisj and a balanced review from Copilot August 20, 2026 15:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Disables VP2 consolidation for mesh selection-highlight overlays to reduce selection stalls in large USD stages.

Changes:

  • Marks selection-highlight render items as unconsolidated.
  • Documents the performance tradeoff and rationale.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

// these participate in consolidation, OGS breaks and rebuilds consolidation across
// the entire stage (observed as a multi-second stall on large stages). Leaving them
// unconsolidated draws them individually and preserves the exact highlight visual.
_SetWantConsolidation(*renderItem, false);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After the stall though is performance better if all selection render items are consolidated?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does consolidation happen immediately in maya, in the built-in max consolidation there is a short delay (a second or so)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the manip performance is better in case of consolidation. However the difference is negligible / acceptable, whereas the initial stall in case of consolidation is 12 seconds for a relatively large scene and it gets worse.

Without the optimization, re-consolidation happens on click.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sounds like a trade off we want to make

@deboisj deboisj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My only concern is for ''after the stall'' VP responsiveness if we never consolidate the selection render items

@AramAzhari-adsk

Copy link
Copy Markdown
Collaborator Author

My only concern is for ''after the stall'' VP responsiveness if we never consolidate the selection render items

Valid concern. Imo the stall is small enough but we'll get feedback on this.

@AramAzhari-adsk AramAzhari-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants