Question about AI

Question about AI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
blackhole
Posts: 3
Joined: 25 Apr 2007, 07:01

Question about AI

Post by blackhole »

Really didn't know where to put this...

I was wondering out of curiousity how the AI in spring is handled. Does the AI makes it calculations per frame? Or is it more abstracted then that?
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

You should certainly go to AI at the bottom of the forum index, heh heh..

btw, nice to meet you.
blackhole
Posts: 3
Joined: 25 Apr 2007, 07:01

Post by blackhole »

I'd go to the AI but thats for the development of the spring AI, not questions about it... right? :P
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Either way, if its wrongly posted you'll just get it moved :P
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

it does indeed belong in the AI forum if its AI related. The AI forum isnt specifically for development.

I suggest you look at the emptyAI sourc code, and the IAIInterface.h and IGlobalAI.h files in spring.
blackhole
Posts: 3
Joined: 25 Apr 2007, 07:01

Post by blackhole »

Will do.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

moved to AI
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Post by hughperkins »

Most (all) AIs do a bunch of calculations each frame, but it's not obligatory. It'd be totally possible to run additional threads in the background, or even communicate with a server process somewhere.

(off the top of my head thought: using an external server would make it "easy" to have coordinated AIs running on separate machines). s/easy/possible/ .

There are two reasons AIs tend to be per-frame:
- its easy to do like that
- it means that the AI's performance will be identical on any machine, regardless of frame-rate, and other processes running at the same time
Post Reply

Return to “AI”