Unity Issue Tracker - Camera.Render causes a memory leak in HDRP using DirectX 12
Fixed
UUM-5879
Camera.Render causes a memory leak in HDRP using DirectX 12
Unity: DirectX12
Fixed
2023.1.X
2022.2.X
Fixed in PR: https://ono.unity3d.com/unity/unity/pull-request/142987/_/graphics/dx12-flush-recycles-resources
Fixed in PR: https://ono.unity3d.com/unity/unity/pull-request/144461/_/2022.2/graphics/dx12-flush-recycles-resources
Steps to reproduce:
Open SampleScene in attached project
Enter play mode
Click on APIimageCreation / RenderTest
Result: GPU memory increate (look at windows task manager) until unity crashes
Expected: Not so much memory increase, and no crash.
Notes:
Seems to only occur using the DX12 API. If the project is switched to DX11, GPU memory usage is stable and the editor doesn't crash. Could not reproduce on a project using the Built-In render pipeline.