We found a performance issue when selecting a top-level prim with a large number of children, e.g., a super big environment set in a shot.
We noticed this problem in mayaUsd plugin at first (https://github.com/Autodesk/maya-usd/issues/1004), and narrowed it down to the API UsdImagingDelegate::PopulateSelection() that this method always recursively traverses into all children, this slows down the interactive performance quite a lot especially for large sets.
(Creating this issue as per discussion in public mailing)
Steps to Reproduce
Load the Pixar kitchen set
Enable the debug symbol USDIMAGING_SELECTION (either from environment variable or Python)
Select any parent prim, for example /Kitchen_set/Arch_grp, the console would output something like these:
Description of Issue
Hi,
We found a performance issue when selecting a top-level prim with a large number of children, e.g., a super big environment set in a shot.
We noticed this problem in mayaUsd plugin at first (https://github.com/Autodesk/maya-usd/issues/1004), and narrowed it down to the API
UsdImagingDelegate::PopulateSelection()
that this method always recursively traverses into all children, this slows down the interactive performance quite a lot especially for large sets.(Creating this issue as per discussion in public mailing)
Steps to Reproduce
System Information (OS, Hardware)
OS: Centos 7.4
Package Versions
USD-19.11 and USD-20.11