Page 1 of 1

Memory leaks in beta 11

Posted: Sat Sep 25, 2010 12:04 am
by PowerWyrm
After two hours of playing, my PC froze... t-engine.exe process was eating over 1.5Gb of memory!
Probably related to the new vaults added... each level with a vault on it now makes the game unplayable due to slowness.

Re: Memory leaks in beta 11

Posted: Sat Sep 25, 2010 12:32 am
by Final Master
I have noticed after roughly 3 hours of gameplay the game slows down considerably, much like in the last few previous betas. Completing closing the game and relaunching it does seem to fix it, though the first few minutes of playing after the restart are also slow.

Regarding slow down in a different way, loading the game with characters is taking quite some time as well. The first load of a computer restart takes about a minute or so, but if you switch characters after an hour or so it can take up to 5 minutes to load the module.

Re: Memory leaks in beta 11

Posted: Sat Sep 25, 2010 12:37 am
by PowerWyrm
Problem confirmed.
Tol Falas has almost one of those greater vaults on each level. Now the game cannot manage to save its state when the character leaves the dungeon. Memory usage simply increases until it passes the 2 Gb mark, then the computer freezes and requires a brutal hard disk reset.
Without better memory/save management, beta 11 in its current state is simply unplayable.

Re: Memory leaks in beta 11

Posted: Sun Sep 26, 2010 9:51 pm
by darkgod
Can you try to comment line 72 of game/engines/default/engines/SavefilePipe.lua:

Code: Select all

--	collectgarbage("stop")
And line 89:

Code: Select all

--	collectgarbage("restart")
And see if it's any better ?
Also can you try to monitor memory usage as you go into tol falas, doesi t jump when chaging levels, by how much, is the jump more when saving, .... ?