Game Development Community

Load time slowdown. Memory leak?

by Dylan Sale · in Torque Game Engine Advanced · 06/16/2004 (6:22 am) · 4 replies

Is it just me, or does this happen for anyone else?

I was developing a shader by loading a level, testing the effect (looking at the object), then quitting the level (TSE was still running). Id make some changes, then reload the level to see the new effect. Gradualy after about 5 or so loads, the Loading Objects part of the level loading pauses (before the bar moves) for a long time (about 10 seconds). Its normally about 1 second. After about an hour of development, it was getting to be about a minute of loading time...

OK, I just did a test and it seems it has something to do with a memory leak. Every time I load the level, TSE grows by ~20meg. This is in the Release build. While in a level however, it seems to be fine (no leaking occurs). After quitting a level, it seems that little cleanup occurs as the size only shrinks by about 5 meg.

#1
06/16/2004 (11:45 am)
Thanks for the info Dylan, I'll add that to the bug tracker.
#2
06/16/2004 (12:49 pm)
Not flushing something?
#3
06/16/2004 (1:34 pm)
Hmm. It might be that the texture manager, shader manager, or the resource manager aren't playing nice. Do you get any reported memory leaks at the end of execution?
#4
06/17/2004 (1:02 am)
Nope, it quits fine, just takes a while for everything to speed back up.