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

Autodesk: Cache materialX::LoadLibraries step to be done once #2666

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

Cache the materialX::LoadLibraries step to be done once. Use pxr's thread safe singleton class.

When processing hdMaterialNetwork for Materialx, the mx::loadLibraries step could be done once and cached. This step improves performance when applying MaterialX shader networks on prims. We use pxr's thread-safe singleton class to do the loadLibraries step once.

Fixes Issue(s)

  • N/A
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-8673

@ashwinbhat
Copy link
Contributor

Tagging @klucknav for visibility

pixar-oss pushed a commit that referenced this pull request Nov 28, 2023
This change is based on github pull request #2666

(Internal change: 2306433)
@erikaharrison-adsk
Copy link
Contributor Author

Hi @jesschimein @klucknav or is there another person I should tag? Any update on this PR? We've a shipping product that's looking to incorporate this work. Let us know if there's anything on our end we can do to help this along. Maybe we can get some feedback on this before addressing the new merge conflicts?

@klucknav
Copy link
Contributor

A change based on this PR has already been incorporated in the dev branch and will be a part of the 24.03 release.

@klucknav klucknav closed this Feb 13, 2024
@erikaharrison-adsk erikaharrison-adsk deleted the adsk/feature/cacheMtlxLoadLibraries branch October 5, 2024 01:01
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.

5 participants