Game Development Community

Massive memory leak

by Nigel Hungerford-Symes · in Artist Corner · 07/03/2005 (3:11 am) · 4 replies

I'm still on the demo version here.

Anyway, after a couple of hours of using and having TSTPro open I suddenly find Windows complaining about resources, which is novel since I'm running 1 gig or ram and several gigs of space for the scratch file.

It has happened several times and in the last few days and is quite annoying when it is silently slowing down the entire system.

I've seen TSTPro consuming over 500 megs of physical ram at one stage.

I'm always looking at just one or two objects at once and my poly count would never go above 3000 tris.

Anyone else getting this?

#1
07/09/2005 (12:36 am)
No, I do not have any memory leaks here.

I remember, that the download of TSTPro was updated once, shortly after it first became available.
So maybe you are running an old version.
What it the date or your TorqueShowToolPro.exe?

-- Markus
#2
07/09/2005 (1:09 am)
I haven't noticed any problems either, but then again I usually have the program open for maybe 5 minutes tops then I shut it down just to open it again 5 minutes later. (pretty stupid, but it's some sort of automatic thing in my brain I can't seem to get rid of. I'll try to keep it open some time and see what happens).
#3
12/11/2005 (5:39 pm)
I found what causes the memory leak. If you open Material list, and check "flush texture cache" every 5s, then every 5 seconds, it reloads the textures and doesn't dump the memory of the previous texture.

So there are two copies of the texture in memory, then 3, then 4. Over time this builds up to huge memory leak. Will the author please fix this or provide a work around.

The current work around is to switch off flush texture or shut down the program every 15 mins.
#4
12/11/2005 (6:24 pm)
That makes sense. And explains why I haven't seen it as I always have the flush feature turned off. The "workaround" would be to keep it off and just turn it on when you know you want to flush the textures.