There appears to be a memory leak when sculpting landscapes using the sculpt tools on a landscape with a material applied.
Notes
User left this comment:
I tracked it down to the UCookOnTheFlyServer::TickPrecacheObjectsForPlatforms function, which seems to cache landscape textures, but never releases the old ones.Steps to reproduce are simple: Create a new landscape with any size, assign the Material'/Engine/Tutorial/Landscape/TutorialAssets/Landscape_Material.Landscape_Material' (or any other, really, but with this one it works reliably) to it and try to sculpt it. You will get tons of "LogTexture:Display: Building textures: Texture2D_XXX (BGRA8)" messages in the output log.
What I noticed: Not all landscape materials seem to trigger this caching, but I haven't found which exactly is the problem with those that trigger it.
While unable to reproduce the log messages, the memory increase did occur rapidly and did not reduce once the sculpt tool was no longer in use.
Results
Memory use increases rapidly. After stopping sculpting, memory use does not return to current use. Each use of the sculpt brush progressively increases amount of memory used with no significant loss of memory use when sculpt brush is not in use.
Expected
Memory use increases until sculpt brush is no longer in use, at which point the memory in use drops down again.
Head over to the existing Questions & Answers thread and let us know what's up.
17 |
Component | UE - LD & Modeling - Terrain - Landscape |
---|---|
Affects Versions | 4.11.2, 4.12.5, 4.13 |
Created | Aug 24, 2016 |
---|---|
Resolved | Feb 23, 2021 |
Updated | Jul 20, 2021 |