Massive slowdown when a dungeon level contains a vault
Moderator: Moderator
Massive slowdown when a dungeon level contains a vault
I don't really know what is causing it, but as soon as a vault is generated on a dungeon level, the game becomes horribly slow. Moving, running, checking inventory... and mostly all commands take ages to respond. What is puzzling me is that the problem happens... even if the generated vault is very small (like a 2x2 area with scrolls or potions).
Re: Massive slowdown when a dungeon level contains a vault
Humm
Every single time ?
Is this new in beta13?
Every single time ?
Is this new in beta13?
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Massive slowdown when a dungeon level contains a vault
Nope, not new. Been that way since vaults were introduced.
Any special check made on vault terrain in the code?
Any special check made on vault terrain in the code?
Re: Massive slowdown when a dungeon level contains a vault
Old Forest with a 2x2 room containing a scroll and a skeleton mage guarding it...
Resting is regenerating mana/hp at 1 per second...
Running doesn't work (walking is faster lol)...
Opening equipment/inventory menu takes 20-30 seconds...
This also happened on a level without a vault
There was probably a monster nest on the level... what I don't understand is why the slowdown continues once all monsters on the level are dead...
Any idea how to monitor time consumption? There seems to be a clear bottleneck here...
Resting is regenerating mana/hp at 1 per second...
Running doesn't work (walking is faster lol)...
Opening equipment/inventory menu takes 20-30 seconds...
This also happened on a level without a vault

There was probably a monster nest on the level... what I don't understand is why the slowdown continues once all monsters on the level are dead...
Any idea how to monitor time consumption? There seems to be a clear bottleneck here...
Re: Massive slowdown when a dungeon level contains a vault
Humm
Yes, when it is slow, press ctrl+alt+shift+p, move around do stuff, well make it go slow, then press ctrl+alt+shift+p again and send me the profiler.log file it should have generated. (DO NOT press ctrl+alt+shift+p after that without restarting or it'll crash)
Yes, when it is slow, press ctrl+alt+shift+p, move around do stuff, well make it go slow, then press ctrl+alt+shift+p again and send me the profiler.log file it should have generated. (DO NOT press ctrl+alt+shift+p after that without restarting or it'll crash)
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Massive slowdown when a dungeon level contains a vault
It'll try that tonight and see what comes out...
Re: Massive slowdown when a dungeon level contains a vault
The profiler.log file seems to lack vital info.
stack_level file_defined function_name line_defined current_line local_time total_time
1 =[C] called from profiler_init=[C] -1 340 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 340 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 340 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 340 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 340 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 232 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 232 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 233 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 233 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 233 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 350 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 350 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 350 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 350 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 351 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 351 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 352 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 352 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 353 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 353 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 419 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 419 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 419 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 419 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 419 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 232 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 232 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 233 0.000000 0.000000
1 =[C] called from profiler_init=[C] -1 233 0.000000 0.000000
...
Re: Massive slowdown when a dungeon level contains a vault
Ah feck, yes it does not work on the JIT version :/
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Massive slowdown when a dungeon level contains a vault
Dunno if it's directly related with the vault, since until now I haven't noticed any slow down or anything in the presence of vaults.
But now I'm in the sixth level of Tol Falas, theres a huge vault (the square one with doble doors up and down), the dialogs are running slow and apparently if I reveal too much of it's surroundings the game freezes.
Ok, I've just tried going some other way, away from the vault. I found an undead pit, full of wights, skeletons and such, I killed them all, and as I was picking up loot the game froze again.
I could just take the stairs down, but now I'm really intrigued. Maybe the World Destroying Sword of Chaos is inside that vault!
But now I'm in the sixth level of Tol Falas, theres a huge vault (the square one with doble doors up and down), the dialogs are running slow and apparently if I reveal too much of it's surroundings the game freezes.
Ok, I've just tried going some other way, away from the vault. I found an undead pit, full of wights, skeletons and such, I killed them all, and as I was picking up loot the game froze again.
I could just take the stairs down, but now I'm really intrigued. Maybe the World Destroying Sword of Chaos is inside that vault!
Re: Massive slowdown when a dungeon level contains a vault
Well, I had several freezes in level 7th and 8th in Tol Falas, and when I finally reached level 9th there was no Master to be seen. I mapped the complete level and scouted every inch of level.
What can I do? If I leave the level and come after, will he respawn or I should already start thinking about dumping the character?
Any way to make some kind of report or anything so it could help the development of the game?
What can I do? If I leave the level and come after, will he respawn or I should already start thinking about dumping the character?
Any way to make some kind of report or anything so it could help the development of the game?
Re: Massive slowdown when a dungeon level contains a vault
Can you send me the savefile please?
As for the freezes it's probably emperor wights doing that, it's fixed.
Powerwyrm: I'll send you a new exe file in a few minutes so you can run the profiler
As for the freezes it's probably emperor wights doing that, it's fixed.
Powerwyrm: I'll send you a new exe file in a few minutes so you can run the profiler
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Massive slowdown when a dungeon level contains a vault
Ok try the profiler with that please:
http://te4.org/dl/tmp/t-engine-beta13-nojit.exe
http://te4.org/dl/tmp/t-engine-beta13-nojit.exe
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Massive slowdown when a dungeon level contains a vault
i'm playing a self-compiled linux version of beta 13. i do not encounter this issue. it's just that saving the game and loading the level tends to be very slow. otherwise the game is fast enough.
posting this on the off chance that it may help.
posting this on the off chance that it may help.
if everything's coming your way, you're in the wrong lane
Re: Massive slowdown when a dungeon level contains a vault
Ok I went to old forest level 2 which contained an untouched Honey Tree clearing and ran the profiler while clearing the monsters and resting...darkgod wrote: Powerwyrm: I'll send you a new exe file in a few minutes so you can run the profiler
Now what? I got a 100Mb file which I can't put anywhere...
Re: Massive slowdown when a dungeon level contains a vault
gzip/zip/wahetever it, it should comrpess very very well
[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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
