Search Issue Tracker
Won't Fix
Votes
6
Found in
2020.3.32f1
2022.1.0b12
2022.2.0a8
Issue ID
UUM-3895
Regression
No
Terrain Detail Mesh creates unnamed "Texture2D" with no reference to an Object when capturing a Snapshot in Memory Profiler
Reproduction steps:
1. Open the attached project "Bug Test.zip"
2. Open the Memory Profiler from "Window > Analysis > Memory Profiler"
3. Press Capture New Snapshot
4. Open the Snapshot
5. Press on "Texture2D" and again on "Texture2D"
6. Observe the "Texture2D"
Expected result: There is no such Texture
Actual result: 'Texture2D "Unnamed Object has no reference"' is created that takes 21.3 MB of memory
Reproducible with: 2020.3.32f1, 2021.2.17f1, 2022.1.0b12, 2022.2.0a8
Could not test with: 2019.4.37f1 - "Terrain" Asset fails to load with error "File may be corrupted or was serialized with a newer version of Unity"
Comments (2)
-
TJHeuvel-net
Mar 23, 2022 12:15
Just to add; if we disable Detail object rendering this texture stays in memory. Our custom detail solution doesnt use the texture.
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:
The solution in this user's case is to reduce the size of the textures on the details that are used on the terrains. This can be done with the import options on the textures themselves. This will result in much smaller texture atlases.
As the user is using a custom detail rendering system, they may want to use two versions of each detail - one for giving to the terrain system for authoring detail coverage, and an equivalent with appropriate texture sizes for their actual rendering.