View Single Post
  #11  
Old November 25th, 2006, 12:22 AM

Loren Loren is offline
First Lieutenant
 
Join Date: Nov 2006
Posts: 739
Thanks: 1
Thanked 8 Times in 8 Posts
Loren is on a distinguished road
Default Re: A couple of simple ways to make it more friend

Quote:
alexti said:
Quote:
Loren said:
Quote:
alexti said:
(1) That's weird. I can Alt-Tab back and forth while the turn calculation is being performed without any problem. It sounds more like something in OS scheduler being borked. User-mode application isn't even supposed to be able to totally monopolize computer resources.
It's not the OS scheduler--the machine is behaving fine and there is plenty of CPU power available (this is a hyperthread machine, Dominions can only monopolize it's processor, not the whole box.)

You can freely alt-tab back and forth while it's your turn. You can pretty freely alt-tab back and forth during battle resolution. What you can't do is alt-tab back and forth during AI calculation. I'm thinking that perhaps it is only checking the keyboard when it displays a message.
Ok, I probably never tried to do it during AI calculation. I haven't actually seen it take any significant amount of time (like 1 sec or more). Alt-tab is not checked by the program, but by the OS. If program is in infinitive loop and doesn't handle keyboard at all, alt-tab still works fine. One needs to make special effort to suppress alt-tab and it's somewhat tricky and Windows-specific. It's unlikely Dom3 does it. It seems strange that 'AI calculations' take so long. You may try to disable hyperthreading - sometimes it creates weird thread locking problems. Maybe OS scheduler and 'AI calculcations' are getting dead-locked on some semaphore (not sure what it might be though...) Sorry, I don't have any other ideas...
The problem is that Dominions isn't recognizing that it's been switched away and releasing the video. I think it's not monitoring the message queue while it's thinking.

This is a large map with many AI's, the "AI thinking" phase is measured in minutes (this turn, I'd say something like 10 minutes), especially since I got into quite a slugging match with my powerful neighbor. (On the main battlefront he's got at least 500 units in battle or marching towards it.) It wasn't nearly so bad while I was mostly squashing Atlantis but now Atlantis is gone. I've got 5 neighbors. 2 are basically at peace (one keeps throwing spells my way but there's been no other conflict) one has only two provinces of contact and we've never done anything to each other. One is the undead--they've got several hundred units in one square that they've done nothing with--since he's by far the most powerful empire I don't intend to start anything with him. That square is now a minimum of 5 provinces behind the battle line and I have no idea where the rest of his empire might be or how he came to have that pile on the one square. Finally there's the guy I'm fighting. He used to be ranked a bit higher by the game, by now I'm ranked a bit higher. Now that he's marching the big forces up it's gotten very slow and my shambler raids on his flank made it even worse. He's also doing a horrible job of countering the shamblers. There's a long path with low-supply terrain, I think the AI is having a hard time with the pathfinding.
Reply With Quote