When can we expect a fix for the terrain tools memory issue?

The terrain tools load all the heightmaps of all the brushes and not just the one that’s currently selected in the palette. This leads to a quickly arising memory issue, you go up to 10 GB in no time, ie install terrain brushes into the project and click the terrain gameobject => out of memory.

When can we expect a fix for that?

4 Likes

Here’s the incident: IN-21309

Something eating up all your memory for nothing isn’t just a bug, it’s a critical bug. Needs fixing asap.

Is this on the issue tracker? I couldn’t find it.

I have difficulties especially with texture painting. It get’s laggy sooner or later and then chrashes if I don’t restart. I am not sure it’s related to what you mention. It works flawlessly on pretty much the same project on 2022.2.0b3 while on 2023.1.0a25 and now still on 2023.1.0b1 it crashes. It’s somewhat reproducible with a new project on my machine. Maybe I a file another bug report, if it’s something different.
I just got this message for example:

8758483--1187137--editor terrain memory issue.png

ok, after messing around more with a new project on 2023.1.0b1, I filed a bug report after it crashed, with the following text:

In a new project create a terrain and set height map resolution to 4097*4097
Then click with raise terrain brush rapidly around.
In my case it is laggy from the beginning and sooner or later crashes the editor.
Might be system dependent though.
I noticed that it writes in the range of hundreds of MB/s to the disk when clicking rapidly. It doesn’t do this, when just clicking once and holding.
I didn’t see this behaviour on older Unity versions.

That’s something different. The bug I mention allocates the memory without painting.

Everyone feel free to comment on Unity not fixing a memory issue, see link above.

lol - wont fix. Most likely ‘Cant Fix’. O,o

What? Why not just leave this open and fix it later? Why close an issue that is confirmed? This is unacceptable!

General Discussion has a thread where this issue was brought up, and the simple version is that it’s not trivial to fix but there is a change going through that will alleviate some of the overhead.

Looks like Unitys CTO has been replaced page-2#post-8871192

From the latest alpha release notes:

  • Terrain: Enabled loading of brushes for the Terrain Inspector to now defer creating full-resolution brush textures until the brush is being used, making the Terrain Inspector faster to open and use less memory.

Yeah, apparently “Close - Won’t Fix” doesn’t mean they won’t fix it at all; they come back time to time to fix the ones that get more votes.

No, that one got 0 Votes. It’s just that someone took the chance in a post to get attention for the matter.