ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Thu Aug 17, 2017 3:48 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jan 10, 2016 2:53 pm 
Offline
Uruivellas

Joined: Tue Dec 13, 2005 12:35 am
Posts: 702
I've noticed long hangs before while generating levels, usually with Ironman rooms and Moria. ToME can hang for up to about a minute, maxing one CPU core, while waiting for level generation to complete.

However, I hadn't tried Paths of the Dead with Ironman rooms. It's even worse... Currently ToME has been unresponsive, 99% on one core, for the last 5 minutes or so while trying to generate a level.

I will try to debug this using GDB and whatnot, but I'm betting it will be difficult. :(

_________________
"These aren't the hobbits you're looking for."


Top
 Profile  
 
PostPosted: Wed Jan 13, 2016 9:08 pm 
Offline
Spiderkin

Joined: Sat Mar 18, 2006 12:48 pm
Posts: 480
I think this is just a symptom of the game being willing to try to generate infinite numbers of levels if it can't place vital structures (or structures it thinks are vital, anyway).

I'm not particularly familiar with the level generation code, but I imagine this could be solved by placing an arbitrary limit.

(I'd probably also try to remove the "always generate interesting levels" option. At least you could try setting it to "off" in-game and see if that helps.)

I probably won't have any time to do any substantial work on ToME 2.x for the next month or so, so I cannot help with any code...


Top
 Profile  
 
PostPosted: Thu Jan 14, 2016 11:53 pm 
Offline
Uruivellas

Joined: Tue Dec 13, 2005 12:35 am
Posts: 702
Yeah, "auto-scum for interesting levels" was the problem. I'm thinking maybe that option should be removed?

_________________
"These aren't the hobbits you're looking for."


Top
 Profile  
 
PostPosted: Fri Jan 15, 2016 6:26 am 
Offline
Spiderkin

Joined: Sat Mar 18, 2006 12:48 pm
Posts: 480
Lord Estraven wrote:
Yeah, "auto-scum for interesting levels" was the problem. I'm thinking maybe that option should be removed?


The only problem I have with removal (and I've considered it) is that not using it may lead to levels that are too uninteresting. It's been quite a while since I've played a really long game with it off, though, so maybe it's not a real issue.

I can't even recall which it actually looks for when judging what's interesting or not... it's probably some sort of scoring function. Maybe adjusting the scoring function to be "somewhere in the middle" and just always turning "auto-scum" on permanently would also work well enough.


Top
 Profile  
 
PostPosted: Mon Jan 18, 2016 5:16 am 
Offline
Uruivellas

Joined: Tue Dec 13, 2005 12:35 am
Posts: 702
Experimenting a bit with auto-scum off, I'm not convinced it actually does anything useful; the game is still plenty lethal, and even produces some vaults at mid levels. I say remove it. :)

_________________
"These aren't the hobbits you're looking for."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group