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?
Question about AI
Moderators: hoijui, Moderators
- hughperkins
- AI Developer
- Posts: 836
- Joined: 17 Oct 2006, 04:14
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
(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