Threading and AI

Threading and AI

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

Moderators: hoijui, Moderators

Post Reply
SoftNum
Posts: 22
Joined: 28 Nov 2005, 22:07

Threading and AI

Post by SoftNum »

How does the threading model work for the AI? Are the calls to your interface blocking (i.e. the game won't go on till it returns?) Or are they non-blocking. Can you miss Update() or whatever messages?

Just looking over AAI code (thanks submarine) some, and came up with some questions. I'm sort of thinking aobut making an AI myself, but we'll see.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Blocking, but ofcourse any AI writer could start using threads internally (pretty good idea btw ;) )
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

Just make sure you dont call any callback functions from other threads than the main one.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Most AI projects that are started or planned are by people who dont knwo how to use threads such as myself, or people who know, but havent used them such as zaphod.
SoftNum
Posts: 22
Joined: 28 Nov 2005, 22:07

Post by SoftNum »

AF: Perhaps that will change. :D
User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post by Veylon »

I don't know how to use threads, and my AI works just fine.
Post Reply

Return to “AI”