-
Notifications
You must be signed in to change notification settings - Fork 203
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
Selected instanced object is slowing down 5x the viewport #341
Comments
@Xaia This is using VP2 render delegate? (not mtoh) |
@kxl-adsk |
Selection is handled very differently in VP2RenderDelegate vs mtoh. We may decide to split this into two separate issues. |
@Xaia Thanks for reporting the issue. This is not selection performance but the selection highlight wireframe draw performance. I notice that there is a USD point instancer in the scene in the recording. Is it possible to share us with the scene? Thanks. |
@HdC-adsk |
@Xaia Thanks for sharing. |
On a NVIDIA Quadro M2000 card I can see a 2x slow down when displaying selection highlight. The scene drawing performance is bound on GPU according to Maya profiler, and when selection highlight is displayed there are nearly 2x GPU workloads (shaded + green wireframe), so I think the 2x slowdown makes sense. @Xaia Can I ask about your machine config, esp. GPU? We will need this info to reproduce the issue. @santosg87 Can you reproduce the 5x slowdown? For record, here is the Maya profile I get from the scene using the following MEL script.
|
@HdC-adsk |
I took a look on a machine with an Nvidia Quadro 5000 and in the viewport when I turn on the frame rate, I am seeing a little more than 2x slower when I have the USD instanced object selected. Without selection I see a frame rate of about 15.2 and with the selection I see a frame rate of about 5.6 Here is the profile I got using @HdC-adsk 's script. |
I believe this issue is related to the problem in #575. With the fix for that issue in place (either in PR116 which should include #575, or when using an updated version of USD) I find the performance while selected is "as expected". My expected performance is selectedFrameTime ~= shadedFrameTime + wireframeFrameTime, which I found to be true with those fixes in place. |
@Xaia are you able to test this on PR116 and close it? the PR is available for download and should contain the fix, as mentioned by williamkrick :) |
@santosg87 Just checked if something changed in the new version and I am getting worse results than in PR113. |
Recreated the scene with 100k spheres and published fresh usd file and its actually much better. Getting 25 frames without selection and 10 with selection. |
#341) * MAYA-127211 : Fix Arnold skydome lights not working even when a texture is set. For the color, it is ignored by HdStorm in USD 22.11 when there is no texture. And when there is no texture, the light is just ignored at all in HdStorm. * MAYA-127211 : double check it's a aiSkydomeLight * MAYA-127211 : Fix merge conflicts.
Describe the bug
Selected instanced object is slowing down the viewport (MTOH and VP2)
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no such big slowdowns.
Attachments

Specs (if applicable):
The text was updated successfully, but these errors were encountered: