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

Clear primInfo->extraDependencies in _RemoveDependencies #1175

Closed

Conversation

marktucker
Copy link
Contributor

Clear primInfo->extraDependencies in _RemoveDependencies after they have been
added to _dependenciesToRemove. Previously the contents of this set were never
cleared, and removing many prims would add N copies of the N extraDependencies
to the _dependenciesToRemove vector, chewing up enormous time and memory.

Description of Change(s)

The extraDependencies data on the UsdImagingDelegate::_HdPrimInfo object is currently never cleared. This change is an experiment requested by @c64kernal on #1170 to see if your internal regression tests still pass with this change in place. My testing in Houdini so far shows no ill effects from clearing this, and shows massive performance improvements when removing a mesh prim with many thousands of geometry subsets on it. I believe this change should be independent of whether PR 1170 (which changes extraDependencies from an SdfPathVector to a DenseHashSet) is applied.

…ave been

added to _dependenciesToRemove. Previously the contents of this set were never
cleared, and removing many prims would add N copies of the N extrDependencies
to the _dependenciesToRemove vector, chewing up enormous time and memory.
@jilliene
Copy link

Filed as internal issue #USD-6014

@marktucker
Copy link
Contributor Author

After speaking to @c64kernal, this is the wrong way to go about addressing the underlying problem here. Closing.

@marktucker marktucker closed this Apr 29, 2020
@marktucker marktucker deleted the dev_clear_extradeps branch July 22, 2020 07:06
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