Page 1 of 1
Question about AI
Posted: 27 Apr 2007, 02:24
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?
Posted: 27 Apr 2007, 02:26
by Snipawolf
You should certainly go to AI at the bottom of the forum index, heh heh..
btw, nice to meet you.
Posted: 27 Apr 2007, 02:27
by blackhole
I'd go to the AI but thats for the development of the spring AI, not questions about it... right?

Posted: 27 Apr 2007, 02:46
by Snipawolf
Either way, if its wrongly posted you'll just get it moved

Posted: 27 Apr 2007, 03:51
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.
Posted: 27 Apr 2007, 07:06
by blackhole
Will do.
Posted: 27 Apr 2007, 08:58
by Tobi
moved to AI
Posted: 07 May 2007, 21:35
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