Faster AI moves

mithril

Chieftain
Joined
May 11, 2005
Messages
6
This thought popped up when I realised I spend more time waiting for the computer to play then playing myself and I hate to see my computer having fun without me...

Even on a 3.7 Ghz bi-processor computer with a gig of ram,
the time you have to wait between turns becomes unacceptable when playing on huge maps with a lot of civs... and you can't take profit of that time to go to the toilet, grab a coke or check if it's day or night outside because you would miss the movement of those 20 Mongol swordsman hitchhiking towards your capital city. One solution to this is to take out the maximum of AI controlled civs to reduce the load on the computer.. which obliges you to be quiet an agressiv civ.

I suppose that after so many years of existance, civilization uses the most optimised code lines to control AI civs, so we can't ask them to simplify this in Civ4, on the contrary:
please make AI even more complexe and powerfull.. but there is another solution to this problem which is quiet simple actualy:
there is a long amount of time during which almost no processor ressources are utilized which is while the player is making his moves with his slow human brain.

Why not use that time to calculate the moves of the civs that are not directly concerned by the players choices ? A lot of stuff on which the players decision don't have an impact could be processed (like AI city productions, troop moves, workers actions, cultural influence changes, inter-AI battle resolution etc...) And if a players action does oblige the AI to react (like declaring war to that civ), well then, the pre-processed stuff are just thrown away and new decisions are made by the AI (like start producing troops in all cities).

Two other improvements that could be done to reduce the 'waiting' aspects of this game would be to continue processing stuff when a dialog box pops up waiting for the players click instead of pausing everything while he reads the stuff.
And secondly, allow the player to do stuff while AI is playing (with a little pop up window showing AI visible moves). You could, for example, allow the user to scan through his cities while AI is playing and do minor actions (changes that wouldn't influence the way AI is playing) like modify city production or reallocate the workers.
 
Welcome to CFC!!!
I agree. Some times, it is quite long, especially on large maps. Totally AGREED!
 
mithril said:
there is a long amount of time during which almost no processor ressources are utilized which is while the player is making his moves with his slow human brain.
Problem is, things can change so much while you move so the AI has to think on a turn-by-turn basis, just like humans.

If a human declares war, moves all their troops into position but the AI has already made its moves inter-turn, doesn't that set the AI back 1 turn since they're reacting to the moves of the last turn? The AI needs to think after the human has made all their moves, not while we are still moving everything around.
 
Absolutely. It is terribly boring watching the AI animate each unit individually :(

Why show 200 knights or workers all make exactly the same move in linear order? *yawn*

When 2+ make the same move, only 1 should be visible/animated.
 
stormbind said:
Absolutely. It is terribly boring watching the AI animate each unit individually :(

Why show 200 knights or workers all make exactly the same move in linear order? *yawn*

When 2+ make the same move, only 1 should be visible/animated.

In other words, make the AI use stacked movement too. :D
 
Why not, just skip the entire scene of us watching them do their moves.

I think a log would be nicer and easier.

Ie.

Turn 213: 2 Aztec Spearmen "appear" to head towards our cities.

or Mongols declare war on China......(then lists the following things they did)


Would be much easier, and clear up the moves much faster, if there was a log rather than us watching every single move.

At the very least, the ability to toggle if we want to see computer make their moves or not.
 
alms66 said:
In other words, make the AI use stacked movement too. :D
I never got stacked movement to work :(

Actually, I think it worked when freshly installed but then it stopped working :hmm:
 
There are several things than can already be done to make things go slightly faster in this game: (Well, in Civ 3 conquest anyway).

1. Leave the 'show AI moves' and 'show ennemy moves' options but remove the 'animate' options in preferences.
2. Shut down all non necessary application using RAM on your computer before you launch the game (don't alt-tab back to windows to do it after you've launched civ3 otherwise it doesnt take the extra memory into account). A typical ram-sucking application that can be shut down is the antivirus.
3. Once civ3 is launched, alt tab back to windows and run a task manager (ctrl + shift + escape) rigth click on the civ3 application in the process list and select 'set priority' to 'above normal' (this isn't a recommended tweak but it works fine: i've gained almost 15 % waiting time by doing this)
4. Remove the 'automatically save game' option in the preferences
5. Snuff as many AI controlled civs as soon as possible :-)

Does anyone have other working ideas to accelerate the game ?
 
errrr xine, i dont think a log is too good, because it would have to be very specific, and would take up a lot of time to read through anyway
 
One of the reasons that the Civ3 game is so slow is that much of the code was re-used from CivII, and is apparently not very optimised. Eg - trade route calculations everytime a city is destroyed or changes hands are very slow, and increase exponentially with the number of cities.

C-IV is being written from the ground-up, so there should be a lot of opportunity to ensure that the code is much more optimised. Hopefully this will mean that we can play large / huge worlds at an acceptable rate.
 
I must say, I haven't really noticed this. Most of the time between turns is taken up by unit movement animation, and if I hold down the shift key, this goes by in a blur.
 
A way to pick alot of speed for Civ3 and most games in general is to goto the crtl alt delete and goto processes and end all except those that say system next to them. I have very little down time on my computer in between turns and my computer is at least 6 years old with XP. I think my computer has just above the minium system requirements for this computer.

note doesnt work on OS less then WinXP
 
Back
Top Bottom