Massive slowdown
Moderator: Moderator
Re: Massive slowdown
I am also experiencing the lag issues on Windows XP. When I start a new character, like I did today, everything seems to run great. Once I leave the first dungeon, Trollmire in this case, and re-enter it the slow down appears. On occasion it gets so bad that just resting for hit points can take 2 minutes or more. This happens on both computers I play on. Pagefiles are enabled. If there are any files you could use from me to track this down I am more than happy to send them.
Joe
Joe
Re: Massive slowdown
Recently I played through to the east using a luajit.exe.
The worst areas of the game where sandworm tunnels and dreadfell. I also experienced resting taking minutes.
As to saves I quit using background saves as soon as the option to turn it off was introduced. I save when I enter or leave a dungeon and it works fine.
On the bright side, chrono folding in the few places I used it didn't seem to introduce any extra lag. I used it in Shertul Fortress (and it was a bit slow there, especially when I folded and went down a staircase) and in Vor Armoury (where it worked beautifully, the folding and unfolding barely took any time).
The worst areas of the game where sandworm tunnels and dreadfell. I also experienced resting taking minutes.
As to saves I quit using background saves as soon as the option to turn it off was introduced. I save when I enter or leave a dungeon and it works fine.
On the bright side, chrono folding in the few places I used it didn't seem to introduce any extra lag. I used it in Shertul Fortress (and it was a bit slow there, especially when I folded and went down a staircase) and in Vor Armoury (where it worked beautifully, the folding and unfolding barely took any time).
Re: Massive slowdown
A possible direction to take to help alleviate the slowdown problem.
Is it feasible to save the second previous level to disk on exit and flush it from memory, rather than cache all previous levels in memory?
Eg Character at dungeon level 4
Dungeon levels 1 and 2 are saved to disk
Dungeon levels 3 and 4 are in memory.
That would enable level bouncing without excessive slowdown, and allow the level saved to disk to be decayed when reloaded.
Running windows task manager showed ToME using 475 Mb of memory whilst at High Peak. No wonder things were just a little slow
Predawn
Is it feasible to save the second previous level to disk on exit and flush it from memory, rather than cache all previous levels in memory?
Eg Character at dungeon level 4
Dungeon levels 1 and 2 are saved to disk
Dungeon levels 3 and 4 are in memory.
That would enable level bouncing without excessive slowdown, and allow the level saved to disk to be decayed when reloaded.
Running windows task manager showed ToME using 475 Mb of memory whilst at High Peak. No wonder things were just a little slow

Predawn
Predawn
Re: Massive slowdown
I tried no pagefile but the game still lags like there is no tomorrow. Like someone said earlier, as long as I can play through the game without saving/loading, then it doesn't lag at all. Is there anything else I can do?
Re: Massive slowdown
you can build ToME using release configuration it will lessen the burden of maintaining of debug memory allocation granting probably significant boost but bear in mind if something goes wrong well strange things may happen (remember this is still beta phase).
You are likely to be eaten by a grue
Re: Massive slowdown
I'm willing to risk breaking my game for less frustrating experience. Can you tell me how I to run ToME in release configuration?
Re: Massive slowdown
You'll have to build the exe yourself. Here's some instructions.Danibre wrote:I'm willing to risk breaking my game for less frustrating experience. Can you tell me how I to run ToME in release configuration?
http://te4.org/wiki/howtocompile
You'll also need to edit the premake4.lua file so it builds the release exe.
Re: Massive slowdown
Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and add
at the top of it
Then run the game and see how it feels
Edit the file game/loader/pre-init.lua and add
Code: Select all
collectgarbage("setpause",100)
collectgarbage("setstepmul",400)
collectgarbage("restart")
Then run the game and see how it feels
[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
I think certain area of effect spells make the game lag. I remember that my summoned fire drake used its aoe on the final level and that the attack remained there. I did not run it from terminal so I cannot confirm this problem. I did notice certain lag because of skill bugs during other testing. This might (or might not) indicate a possible cause.
Re: Massive slowdown
darkgod wrote:Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and addat the top of itCode: Select all
collectgarbage("setpause",100) collectgarbage("setstepmul",400) collectgarbage("restart")
Then run the game and see how it feels
After some very brief testing in Kor'Pul I can say that there is a HUGE difference! Much better!
I first loaded the game without the above fix and got my normal slow downs. After saving off and then editing the file the game was much better. Again, this was only a brief test, about 2 levels of the dungeon, but I have see zero lags so far/
Re: Massive slowdown
Works perfectly for me so far - just entered the crypt with a cursed. Thank you very much. I can now turn all effects and shaders back on with 0 lag.darkgod wrote:Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and addat the top of itCode: Select all
collectgarbage("setpause",100) collectgarbage("setstepmul",400) collectgarbage("restart")
Then run the game and see how it feels
Re: Massive slowdown
Looking good so far!... YEAH!!!!
Re: Massive slowdown
Yay 
It's in for the next beta then!
PS: Oh and since it's in this specific file it wont alter you ability to use online profiles, double yay

It's in for the next beta then!
PS: Oh and since it's in this specific file it wont alter you ability to use online profiles, double yay

[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
I have used it on my b19 mindslayer in the end fight. Before the change every turn would take anywhere between 10 seconds to 3 minutes. Now it runs perfectly smoothly. This certainly looks like the fix Darkgod, tyvm indeed
Now I can make myself have one last desperate go at finally killing the PD-ing bastard!

Re: Massive slowdown
Works perfectly! 
