maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

Snap to Points is slow in large stages

Open kgoulding opened this issue 3 years ago • 4 comments

Bug Description Snap to Points is slow when working within a large usd stage. This applies when moving pivots or objects with Snap to Points enabled, its borderline unusable and the lag will prevent you from snapping where intended.

Steps to reproduce the behavior:

  • open large usd stage in Maya
  • select Usd Prim or Maya geometry
  • enable Snap to Points
  • attempt to move object and snap to prim points in large stage

kgoulding avatar Sep 14 '22 02:09 kgoulding

Hello @kgoulding, we did some work in this regards. Wondering what version of Maya and Maya USD you are on?

santosd avatar Nov 09 '22 16:11 santosd

@santosd sorry for the late reply. Maya 2022.4.1-27.0.PFIX using mayaUsdPlugin 0.19.0 with usd-21.11

kgoulding avatar Dec 13 '22 21:12 kgoulding

Thank you @kgoulding, I tested on My end using the 2022.4 Maya build with Maya USD 0.21.0 and do see the performance gains from the work we did. The work we did is affected by how many prims are shown in the Viewport the heavier the scene the slower the initial snap is. If the camera is moved we need to determine the objects in the scene again so if you are moving the camera in between each snap then that can be slow as well.

If you snap, to a point and then without moving the camera snap again the performance should be pretty fast, for me it is pretty much instant in a really heavy scene. My initial snap takes ~2 seconds or so.

How heavy is your scene? Does it work better if you hide some of the objects or zoom in closer to some of the prims?

santosd avatar Dec 14 '22 20:12 santosd

Hi @kgoulding, just wanted to check back on this and see if your results go in line with what I previously said. Also is this happening with all scenes on your end? Do you have a scene you could share that we could test on our end?

santosd avatar Jan 05 '23 15:01 santosd