Adds `Renderer::clean`, and fixes crash in `PerformanceTest/Node
children Test`.
Merge pull request #6140 from dumganhar/render-clean

Adds `Renderer::clean`, and fixes crash in `PerformanceTest/Node children Test`.