Skip to content
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

MAYA-107249 When excluded prims changes we don't know if some prims were removed #821

Conversation

williamkrick
Copy link
Contributor

from it and so we don't know to bring them back. The easy solution is to reset everything when excluded prims changes, that gives us the correct result slowly. We don't have any workflows built on top of this right now so leaving the performance issue in the backlog.

In addition to fixing the defect I also cleaned up how we understand changes to the proxy shape in the render delegate. I've tried to concentrate all the checks for invalid data into a new function _ClearInvalidData. Then the rest of the code after that (_InitRenderDelegate, _Populate, etc) doesn't directly check the _proxyShapeData for changes. Instead it looks at the data it is supposed to generate and does work based on that (similar to how it works on the first frame when we create the proxyRenderDelegate). I think that will help keep the logic controlling what actually happens when proxy shape attributes change simpler.

…from it and so we don't know to bring them back. The easy solution is to reset everything when excluded prims changes, that gives us the correct result slowly. We don't have any workflows built on top of this right now so leaving the performance issue in the backlog.
@williamkrick williamkrick requested a review from kxl-adsk October 7, 2020 13:43
MProfilingScope subProfilingScope(HdVP2RenderDelegate::sProfilerCategory,
MProfiler::kColorD_L1, "Populate");

// It might have been already populated, clear it if so.
// Remove any excluded prims before populating
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered moving this code out of _Populate as well, because it is modifying the render index rather than populating, but I didn't have a strong enough reason to do it so I left it for now.

@kxl-adsk kxl-adsk added the vp2renderdelegate Related to VP2RenderDelegate label Oct 7, 2020
@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 8, 2020
@kxl-adsk kxl-adsk merged commit 50eb2c6 into dev Oct 8, 2020
@kxl-adsk kxl-adsk deleted the krickw/MAYA-107249/rebuild_render_index_when_excluded_prims_changes branch October 8, 2020 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants