Massive slowdown

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
jhauser42
Cornac
Posts: 44
Joined: Thu Oct 28, 2010 2:39 am

Re: Massive slowdown

#76 Post by jhauser42 »

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

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: Massive slowdown

#77 Post by edge2054 »

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).

Predawn
Thalore
Posts: 127
Joined: Fri Sep 24, 2010 10:40 am
Location: East Sussex, England

Re: Massive slowdown

#78 Post by Predawn »

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
Predawn

Danibre
Low Yeek
Posts: 9
Joined: Wed Feb 16, 2011 3:57 pm

Re: Massive slowdown

#79 Post by Danibre »

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?

Graziel
Wyrmic
Posts: 234
Joined: Wed Sep 15, 2010 10:32 am

Re: Massive slowdown

#80 Post by Graziel »

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

Danibre
Low Yeek
Posts: 9
Joined: Wed Feb 16, 2011 3:57 pm

Re: Massive slowdown

#81 Post by Danibre »

I'm willing to risk breaking my game for less frustrating experience. Can you tell me how I to run ToME in release configuration?

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: Massive slowdown

#82 Post by edge2054 »

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?
You'll have to build the exe yourself. Here's some instructions.

http://te4.org/wiki/howtocompile

You'll also need to edit the premake4.lua file so it builds the release exe.

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

Re: Massive slowdown

#83 Post by darkgod »

Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and add

Code: Select all

collectgarbage("setpause",100)
collectgarbage("setstepmul",400)
collectgarbage("restart")
at the top of it

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 ;)

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: Massive slowdown

#84 Post by marvalis »

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.

jhauser42
Cornac
Posts: 44
Joined: Thu Oct 28, 2010 2:39 am

Re: Massive slowdown

#85 Post by jhauser42 »

darkgod wrote:Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and add

Code: Select all

collectgarbage("setpause",100)
collectgarbage("setstepmul",400)
collectgarbage("restart")
at the top of it

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/

Nevuk
Thalore
Posts: 189
Joined: Thu Jul 27, 2006 2:50 am

Re: Massive slowdown

#86 Post by Nevuk »

darkgod wrote:Ok people who have lags can you please try that:
Edit the file game/loader/pre-init.lua and add

Code: Select all

collectgarbage("setpause",100)
collectgarbage("setstepmul",400)
collectgarbage("restart")
at the top of it

Then run the game and see how it feels
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.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Massive slowdown

#87 Post by Canderel »

Looking good so far!... YEAH!!!!

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

Re: Massive slowdown

#88 Post by darkgod »

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 ;)

siphal
Cornac
Posts: 32
Joined: Fri Oct 04, 2002 7:12 am

Re: Massive slowdown

#89 Post by siphal »

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 :D Now I can make myself have one last desperate go at finally killing the PD-ing bastard!

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

Re: Massive slowdown

#90 Post by PowerWyrm »

Works perfectly! 8)

Post Reply