Skip to content

Conversation

pmavridis
Copy link
Contributor

Purpose of this PR

The GC allocs were caused by assigning the "name" variable of the custom pass UnityEngine.Object.
I have tried to move this to OnEnable, but the gc allocs were still flagged, so I removed it completely.

The side-effect is that the custom passes will appear anonymous in RenderDoc captures.


Testing status

The 2 extra GC allocs are not happening anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants