fixes for testProxyShapeSelectionPerformance when run with the VP2 render delegate #828
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes get the
testProxyShapeSelectionPerformance
test passing when run with the Viewport 2.0 render delegate. The test can be run in that configuration by settingVP2_RENDER_DELEGATE_PROXY=1
here:maya-usd/test/lib/mayaUsd/render/pxrUsdMayaGL/CMakeLists.txt
Line 45 in 50eb2c6
There are three main issues addressed here:
UsdSelectionKind
optionVar set toassembly
to pick assets at a coarser granularity. Since theCubeGrid..._10.usd
files are binary, the changes to them aren't directly visible here, but the only update was to setkind=assembly
on the root prim in each of those files.kind=assembly
, we still end up selecting a UFE item representing a root USD prim with the VP2 render delegate. To make the behavior consistent with the non-VP2 render delegate case, we just cleave off the root prim and proxy shape segments of the item's path, leaving the proxy's transform node name at the end which is what gets selected in the Pixar batch renderer configuration.UI
object filter in thehardwareRenderingGlobals
.