Skip to content

Conversation

@sebastienblor
Copy link
Collaborator

When _Execute is being invoked over and over in the render delegate, even sometimes when a render is in progress without any real change, we need to check if specific things have changed, and if they do we make it so that the render is interrupted to update them.
Here we were constantly setting a couple of options parameters (pixel_aspect_ratio and subdiv_camera) without even interrupting the render. Worse, with the default use case of no subdiv_camera, we were calling AiNodeResetParameter on it, which currently doesn't have all the checks we do in AiNodeSet*, so Arnold constantly thinks that the options have changed, even during iterations.

Finally, in ShouldSkipIteration I'm now calling ProcessConnections all the time, instead of checking the boolean value "skip". In a separate task, we need to rewrite this function completely as it's logic is completely inverted

Issues fixed in this pull request
Fixes #2075

@sebastienblor sebastienblor merged commit 9e9b8d0 into Autodesk:fix-7.3.3 Aug 27, 2024
@sebastienblor sebastienblor deleted the pr/2075 branch August 27, 2024 05:32
sebastienblor added a commit that referenced this pull request Aug 27, 2024
* add HALF to the output description when needed (#2012)

* Move item in changelog (#2023)

* Proper support of arnold:visibility primvar in hydra #1610 (#2022)

* Ensure options attributes are not set while a render is in progress #2075 (#2076)

---------

Co-authored-by: cpichard <[email protected]>
sebastienblor added a commit that referenced this pull request Sep 9, 2024
* add HALF to the output description when needed (#2012)

* Move item in changelog (#2023)

* Proper support of arnold:visibility primvar in hydra #1610 (#2022)

* Ensure options attributes are not set while a render is in progress #2075 (#2076)

* Ensure we don't register the TfNotice callback twice MAXTOA-1824 (#2089)

* Ensure we don't register the TfNotice callback twice MAXTOA-1824

* Update changelog

* Fix changelog

---------

Co-authored-by: cpichard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant