ProxyRenderDelegate::update() being called twice for each frame during playback #1914
|
Hi, I was looking into a Maya playback performance issue, found that one of the expensive calls is The first run: The second run: This side effect of having My questions:
Thanks, |
Replies: 1 comment 1 reply
|
Hi @csyshing, The second callstack you posted is coming through Maya is expecting to be able to call MPxSubSceneOverride::update() multiple times a frame without paying a significant performance cost. This is necessary when Maya is displaying multiple viewports at the same time. The MPxSubSceneOverride should be tracking what has changed and only doing a minimal update. I think our intent is that What exactly is happening inside the calls to William |
Hi @csyshing,
The second callstack you posted is coming through
TtimeControl::mouseReleaseEvent(). I think that the workflow you captured was clicking on Maya's timeline, is that correct? Maya does an extra refresh when the mouse is released after the timeline is scrubbed or clicked on, which is what I think you are seeing here. I think if you are displaying a single viewport and playback the scene, or scrub the timeline while holding the mouse down you should see one call to update() per time displayed.Maya is expecting to be able to call MPxSubSceneOverride::update() multiple times a frame without paying a significant performance cost. This is necessary when Maya is displaying multiple…