-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Regression with ComputeFlattened and Value Clips in 20.08 #1344
Comments
Hi @chrisrydalch, this is an issue with the manifest layer generated in usdstitchclips and a consequence of the changes to value clips behavior in the 20.08 release -- I'll go into more details below. We are currently gearing up for the 20.11 release and a full fix for this likely will not make it in to that release. There are a few workarounds:
Details: usdstitchclips currently uses the topology layer it generates as the manifest as well. Because this topology layer contains declarations for the indices attribute, it triggers the behavior I described above and causes the issue you're seeing. I think the right fix for this is to update usdstitchclips to generate a manifest layer that is separate from the topology layer. In the meantime, removing the 'manifestAssetPath' or pointing it to the one generated by UsdClipsAPI avoids this issue. Let me know what you think! |
Hey @sunyab! This is great info, thank you for the break down as well as some options. I feel like every time value clips need to be dived into deeper, there's some nuance that I missed before 😁 but this all makes sense. For us I think we'll rely on the ClipsAPI to generate a manifest; we're directly rendering from USD, so we're more sensitive to that big runtime hit. For example, one of the first shots to get a decent number of crowds didn't use manifests, so the shot was 5-7x slower to open in USD 20.08 vs 20.05 - ouch! 😬 Even in a simple test, the 5-7x hit seemed pretty consistent; does that sound expected to you? As for usdstitchclips, are you open to a PR, or would you rather wait and take care of it internally after 20.11 is out the door? Thank you again for the help, we really appreciate it! |
@chrisrydalch The 5-7x slowdown is a little surprising to me, I don't believe we had observed anything similar here. The automatic manifest generation does need to open and traverse each clip though -- can you say how many clip layers are being used in general? For usdstitchclips, I think it's something we'll want to take care of internally after 20.11 is released. I have a nearly completed fix but I need to look at it a bit more and do more testing. |
Filed as internal issue #USD-6384 |
Thanks @sunyab! I'm not sure how many are in the production examples it does seem to vary, but we observed a similar relative slow-down in a simple flag, which had 60 layers (layer-per-frame). Having the manifest though solves both that slow-down and this primvar-indices issue, but if you feel it's worth looking into more, I can clean up that example and log it. Thanks! |
@chrisrydalch Having an example would definitely be helpful! In the meantime I'll try to spend some time looking closer at the real fix once we get the ball rolling on the 20.11 release. |
…os#1344) - To enable set HDX_ENABLE_WBOIT
Description of Issue
As of USD 20.08/Dev, Primvars::ComputeFlattened fails to get values for stitched, value-clip driven primvars. These value clip-driven primvars also report to be indexed, when they are not.
Steps to Reproduce
In the attached example, the asset_A.usda has the primvars defined and result_A.usda has the clip applied.
This is in contrast to USD 20.05:
System Information (OS, Hardware)
CentOS 7
Internal issue is BSSUSD-52
Thanks!
computeflattened_primvars.zip
The text was updated successfully, but these errors were encountered: