Planetside Software Forums

Support => Terragen Support => Topic started by: N-drju on April 12, 2020, 11:03:24 AM

Title: A memory usage problem?
Post by: N-drju on April 12, 2020, 11:03:24 AM
I have a scene with some self-made objects added. Just two, mid-sized textures involved and two heavy textures. The objects themselves are about 300mb big.

I started fine-tuning the object placement using "smooth-shaded" option, then switching back to bounding boxes when I noticed something unpleasant happening. I checked the task manager and found TG eating away 15.1gb of my RAM!

When the scene is opened for the first time and idling, it consumes about 3.5gb at most. I fail to see the reason why view mode switching would cause this behavior. I would like to report this issue to Planetside or at least get to know if this is normal or not.
Title: Re: A memory usage problem?
Post by: jaf on April 12, 2020, 12:11:03 PM
I believe it's normal.  I just tried a scene that I made using a bunch of obj models (now tgo's).  On loading, it used 4gb.  Changing to wireframe, 5.1 gb. Textured is 6gb.
Title: Re: A memory usage problem?
Post by: Dune on April 12, 2020, 01:58:24 PM
I think preview uses GPU rather than CPU, so you need a heavy card. I don't have one, so I continually fiddle with box view and some pops as textured or shaded, especially when editing.
Title: Re: A memory usage problem?
Post by: WAS on April 12, 2020, 02:38:19 PM
Huh.

I open a project. I insert 45mb object, I create a 10k population. Memory at 1.5gb. I change to wireframe, memory at 1.5gb. I change to textured, memory at 1.5gb... this object is also having it's twigs turned grayscale and PF colours added so should be extraneous on memory I'd think.

Terragen does have a pretty substantial memory leak, perhaps it's related there and something specific with the objects.
Title: Re: A memory usage problem?
Post by: N-drju on April 12, 2020, 03:57:32 PM
Quote from: WAS on April 12, 2020, 02:38:19 PMHuh.

I open a project. I insert 45mb object, I create a 10k population. Memory at 1.5gb. I change to wireframe, memory at 1.5gb. I change to textured, memory at 1.5gb... this object is also having it's twigs turned grayscale and PF colours added so should be extraneous on memory I'd think.

Terragen uses instancing as object creation method, so it's not like you can just add up required memory per object and sum it up. If this was the case, even a simple 100x100m cube population would be impossible.

As for memory leaks, these have been laregly improved over the years so I'm more inclined to think this might indeed be what jaf says.

Also, take a note that plants (I guess we're discussing XFrog now) are, mostly, very light in terms of memory. You can't compare XFrog plants to a fully sculpted car or a human model.
Title: Re: A memory usage problem?
Post by: WAS on April 12, 2020, 04:39:25 PM
Quote from: N-drju on April 12, 2020, 03:57:32 PM
Quote from: WAS on April 12, 2020, 02:38:19 PMHuh.

I open a project. I insert 45mb object, I create a 10k population. Memory at 1.5gb. I change to wireframe, memory at 1.5gb. I change to textured, memory at 1.5gb... this object is also having it's twigs turned grayscale and PF colours added so should be extraneous on memory I'd think.

Terragen uses instancing as object creation method, so it's not like you can just add up required memory per object and sum it up. If this was the case, even a simple 100x100m cube population would be impossible.

As for memory leaks, these have been laregly improved over the years so I'm more inclined to think this might indeed be what jaf says.

Also, take a note that plants (I guess we're discussing XFrog now) are, mostly, very light in terms of memory. You can't compare XFrog plants to a fully sculpted car or a human model.



But Jaf just explained what I just did and tested myself, with no change in memory. Like I said, this may be related to the object and what's happening with it.

And clearly population size impacts memory use, which is why so many people have problems with populations. Lol But the point I'm trying to make is viewing the population in different modes doesn't impact my 32gb of memory, at all. No change. So not sure what Jaf did or what type of object he used, and like I said may be object based. Mine was a TGO as well.

Also the memory leak I'm referring to has never been fixed in the 3 years I've taken notice. Only solution from people and Matt is to restart TG/PC. I demonstrated it too not too long back.