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

ShaderNetworkAlgo::removedUnusedShaders : Optimize, fix crash in case of cycle #1417

Merged

Conversation

danieldresser-ie
Copy link
Contributor

This was causing a crash in my testing of ShaderTweakProxy - we will quite possibly need to add an explicit cycle check to that code, because I'm guessing we don't want to depend on renderers behaving reasonably when handed shader networks containing cycles. But it probably still makes sense to merge this, because it's currently easy to cause a crash in this function by building a shader network with the Python API, and also in extreme cases this could be dramatically faster ( because it avoids revisiting subgraphs that have already been checked ).

@johnhaddon
Copy link
Member

Thanks Daniel, LGTM (apart from a missing Changes.md entry, which I'll add after merging).

@johnhaddon johnhaddon merged commit ab7556a into ImageEngine:RB-10.5 May 16, 2024
4 checks passed
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.

2 participants