Search Issue Tracker
Fixed
Fixed in 2022.3.59f1, 6000.0.40f1, 6000.1.0b7, 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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note (fix version 6000.0.40f1):
Fix the memory of released textures accumulating, when the editor is out of focus on DX12.
Resolution Note (fix version 2022.3.59f1):
Fix the memory of released textures accumulating, when the editor is out of focus on DX12.