Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
3
Found in
Issue ID
1339314
Regression
No
Shader cache grows indefinitely
Shader cache has no means of automatically purging old entries. This means that the cache grows indefinitely unless manually deleted. The problem with manual cache purge is that there is no way to preserve the currently valid data, so full recompilation is required after it. When iterating changes on complex shaders and especially when touching include files that are used in multiple shaders, the cache size can quickly grow into gigabytes range. This can eventually lead into out of disk space situation.
https://forum.unity.com/threads/unity-editor-cache-folder-leak-ran-out-of-space-on-disk.1115794/
Comments (1)
-
oleg_v
May 29, 2021 20:53
And it seems issue can be the reason for Unity to hang on switching Game/Editor mode
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
- Global Settings Asset “Open Project Settings > Graphics …” text overflows the button bounds when Inspector is narrow
- The “x” button to delete the input for the Source project is inconsistent and only appears when hovered and creating a new Template
- The “Next” button is not greyed out and still active when creating a new Template in the Hub and the Source project was selected but then something was searched with no options
- “Select a project.” label under the title is not needed because the Source project dropdown already has a placeholder “Search or select a project” when creating a new Template in the Hub
- [Usability] “Sorry, no templates match the search “”” message is not informative when creating a new Project in the Hub with Custom Template filtering enabled but no Custom Templates created
Resolution Note (fix version 2022.1):
Restructured the shader cache to allow proper revision handling and eviction policy. It is now also possible to clear the cache for specific shader assets manually due to the new structure.