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

MAYA-115117 Deactivate prim on pull instead of using exclude feature #2036

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

kxl-adsk
Copy link

Exclude prim is way too expensive for complex scenes since it repopulates the entire render index. We decided to switch to deactivation which reduces the cost to what changed.

@kxl-adsk kxl-adsk added the workflows Related to in-context workflows label Jan 27, 2022
@@ -46,8 +46,7 @@ namespace {

// We want to display the unloaded prims, so removed UsdPrimIsLoaded from
// the default UsdPrimDefaultPredicate.
const Usd_PrimFlagsConjunction MayaUsdPrimDefaultPredicate
= UsdPrimIsActive && UsdPrimIsDefined && !UsdPrimIsAbstract;
const Usd_PrimFlagsConjunction MayaUsdPrimDefaultPredicate = UsdPrimIsDefined && !UsdPrimIsAbstract;
Copy link
Author

Choose a reason for hiding this comment

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

I wish the predicate in USD be more flexible!

@@ -98,7 +98,8 @@ class MAYAUSD_CORE_PUBLIC ProxyShapeHierarchy : public Ufe::Hierarchy

private:
const PXR_NS::UsdPrim& getUsdRootPrim() const;
Ufe::SceneItemList createUFEChildList(const PXR_NS::UsdPrimSiblingRange& range) const;
Ufe::SceneItemList
createUFEChildList(const PXR_NS::UsdPrimSiblingRange& range, bool filterInactive) const;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Negative boolean tend to be confusing. I would prefere this to be filter with true meaning do filter, false meaning do not filter.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, it mean filter-the-inactive-nodes and not make-filter-inactive... I mis-read the meaning of the variable.

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jan 27, 2022
@kxl-adsk kxl-adsk merged commit 7971310 into dev Jan 27, 2022
@kxl-adsk kxl-adsk deleted the kxl-adsk/MAYA-115117/switch_to_deactivation_on_pull branch January 27, 2022 14:50
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 workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants