Jump to content

5+ terrain layers


oskarkogut
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
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...