Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Slow transform manipulation performance for heavy mesh #1300

Closed
huidong-chen opened this issue Aug 21, 2020 · 4 comments
Closed

Slow transform manipulation performance for heavy mesh #1300

huidong-chen opened this issue Aug 21, 2020 · 4 comments

Comments

@huidong-chen
Copy link

huidong-chen commented Aug 21, 2020

Description of Issue

Transform manipulation performance for heavy mesh is extremely slow.

We see this issue in Maya with both VP2RenderDelegate and HdStorm-based ALDrawOverride, 99% of the main-thread time is spent in USD reading from crate file and decompressing large primvar data buffer.

Initial discussion on this issue can be found at usd-interest forum:

https://groups.google.com/g/usd-interest/c/697eATsMcJM

Steps to Reproduce

  1. Load asset in Maya with maya-usd plugin loaded. Or load in USDView if you have a way to manipulate transform.
  2. Manipulate the transformation
  3. Frame rate is ~0.5fps.
  4. If I short-circuit the UsdImagingMeshAdapter::TrackVariability() function body, manipulation frame rate will be 27fps.

System Information (OS, Hardware)

Package Versions

Build Flags

@huidong-chen
Copy link
Author

Please contact me if you need the heavy mesh which we used to reproduce Autodesk/maya-usd#566

@jtran56
Copy link

jtran56 commented Aug 24, 2020

Filed as internal issue #USD-6304

@Xaia
Copy link

Xaia commented Sep 1, 2020

Hi, I was asked by @HdC-adsk to reupload the heavy mesh asset. You can download it here: https://we.tl/t-d3BmmUbC4r (link expires in 1 week (8th of September).

@gitamohr
Copy link
Contributor

gitamohr commented Sep 1, 2020

Thanks HdC-adsk for the excellent report, and thanks Xaia for sharing the asset! I have checked in a fix for the performance bug in the USD core internally. Without the fix, translating this asset takes ~1600 msec to redraw in usdview on my machine. With the fix, it takes ~130 msec.

marktucker pushed a commit to sideeffects/USD that referenced this issue Nov 27, 2020
Usd_HasDefault to avoid pulling values out of crate files (which may be
expensive) when unneeded.

Fixes PixarAnimationStudios#1300

(Internal change: 2094029)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants