Jump to content

5+ terrain layers


oskarkogut
 Share

Go to solution Solved by Peter,

Recommended Posts

Hi. There is a known issue in Unity 2021 < 2021.2 with memory leaks when using 5+ terrain layers.
 https://issuetracker.unity3d.com/issues/terrain-tls-allocator-alloc-temp-tls-errors-are-thrown-when-terrain-has-5-plus-layers
I encountered this issue when messing around on an empty terrain, adding the layers by hand. However, when spawning 8 terrain layers from Gaia textures spawner, there is no error. I'm wondering - how did you do that? 

Link to comment
Share on other sites

  • Solution

Hi @oskarkogut, I could imagine that this issue is caused somewhere in the terrain inspector itself maybe. We did not do anything special to circumvent this bug, what happens in the Gaia code roughly is: Upon Spawning / Terrain Creation Gaia checks if the texture it intends to spawn is already on the terrain in a layer, if not a new layer asset is being created in the project hierarchy, then all required layers are assigned to the terrain from code. I assume that whatever triggers this bug is bypassed by this somehow.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...