Search Issue Tracker
Fixed in 2022.3.59f1
Fixed in 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X, 6000.2.0a3
Votes
9
Found in
2022.3.52f1
6000.0.26f1
6000.1.0a3
6000.2.0a1
Issue ID
UUM-86354
Regression
Yes
Allocated graphics memory does not get released when the Editor is out of focus while using D3D12 graphics API
How to reproduce:
1. Open the attached “IN-87923” project
2. Open Task Manager
3. In the menu bar of the Unity Editor, select “Test → EditorUpdate → Run Multiple (Without Flush)”
4. Unfocus the Editor by clicking anywhere inside the Task Manager window
5. Observe the “Memory” tab in the Task Manager
Expected result: The Editor’s memory usage does not change by a significant amount
Actual result: The Editor’s memory usage increases by several gigabytes over time
Reproducible in: 2022.3.52f1, 6000.0.26f1, 6000.1.0a3
Not reproducible in: 2021.3.45f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
Notes:
- Not reproducible using D3D11 or Vulkan graphics APIs
- Invoking GL.Flush() helps alleviate some of the memory buildup, but it still continues to build up over time, albeit at a slower pace (Test → EditorUpdate → Run Multiple (With Flush))
- Focusing the Unity Editor during method execution releases the allocated memory
- Could not find the regression point due to compilation errors when downgrading the project. The earliest tested version is 2022.2.5f1, where the issue reproduces. Downgrading to 2022.2.0f1 introduces compilation errors
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 6000.0):
Fix the memory of released textures accumulating, when the editor is out of focus on DX12.
Resolution Note (fix version 2022.3):
Fix the memory of released textures accumulating, when the editor is out of focus on DX12.