Memory leaks in beta 11

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

Memory leaks in beta 11

#1 Post 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.

Final Master
Sher'Tul
Posts: 1022
Joined: Fri May 21, 2010 8:16 pm
Location: Inside the minds of all
Contact:

Re: Memory leaks in beta 11

#2 Post 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.
Final Master's Character Guides
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D

PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

Re: Memory leaks in beta 11

#3 Post 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.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Memory leaks in beta 11

#4 Post 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, .... ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply