Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alternative Civs > Clash of Civilizations > Threads for RT.
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
F Smith is offline F Smith
Chieftain
Austin, Tx, USA
May 1999
time: 05:13
  Old Post 03-05-1999 08:34
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Threads for RT. Got spare money?

Hi:

I haven't had any 'jerkiness' yet with threads, altho I have not yet pushed them to the limit, processing-wise. I've only used them for 'server' applets.

I've seen several Java video games, however, that clearly have overcome that problem. The smooth graphics of some of them surpasses current games. There's several versions of 'Link' that are neat, an amazing set of racing games (their sprites move *perfectly* smoothly, at high speeds).

There's a simple example of such *with code* at the javaboutique.com -- the "asteroids applet". They use one thread to run a 'timeline' "loopThread", basically, and set it to priority 'MIN'. They also create thead just to load sounds "loadThread".

Then, in every 'cycle' of the thread, you put your 'turn' code. It's no different than 'turn' based, from a coding standpoint. You just make the turns run automatically, one after another.

The interface is the only difficult part . . .

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 04-05-1999 09:20 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I think its a question of scalability when considering whether the threads cause jerkiness for Real Time.

Frankly, there's really not much In Asteroids that has to be done by each thread. What we're talking about is probably at least a factor of 1000x more stuff in our graphics, and 1000x more in the game itself. The AI alone should have Tens of threads running, thinking about strategy, tactics, etc. for several different civs at a time. With modern desktop power I'm sure we can do it for TB (turn based), but we'll just have to see for RT.

Your point in the other RT thread is quite right IMO. At this point all we need to do is keep RT in mind in the models and interface design, and put hooks in the code for it. Then, if/when we implement RT playtesting can tell us whether its going to work "on the cheap" (with relatively few design / gui changes).

I, personally would prefer to make it "back-burner" for now, because if we pursue every "we could even..." issue we'll never get anything out.

F_Smith is offline F_Smith
Prince
Austin, Tx 78728
May 1999
time: 05:13
  Old Post 04-05-1999 00:17
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Enter the AD-FREE zone

Tens of threads per civ, just for the AI?

Really?

Forgive me, I'm completely ignorant in that department, but does it really take multiple seperate threads to do the AI? That seems incredible. Is there any other architecture that would suit? Is there any way to bundle operations into fewer threads? I probably don't even understand enough about AI to even follow ya'll's discussion, but perhaps a little brainstorming by ya'll who understand this stuff could cut that down? I thought AI was a matter of situational awareness and pre-defined (perhaps changable, allowing 'learning', via 'reflection') strategies/responses. This sounds like lists of properties that could be stored in memory, as multidimensional arrays or linked lists or some such. This would allow just a few threads to control many civs, and allow for massive depth and cunning in the AI. Am I as ignorant as I think I am?

We probably need to discuss architecture, anyway. There are still some big things we haven't nailed down, like exactly what on-screen details do we want to use sprites for -- units, cities, terrain, etc? Do we want to stay with 'squares', or move to a coordinate system, or go with a 'risk'-type abstract map with 'regions'? We could use hexes . . . Do we want to 'draw' the map to the screen, or import tiles?

I'm pretty sure we can still do it, tho. I was just looking at a demo last week in which 25,000 seperate threads controlled 25,000 seperate on-screen graphics, each moving independently in real-time with no choppiness. I'll go find that link later, and post it.

Mark_Everson is offline Mark_Everson
Clash of Civilizations Project Lead
Canton, MI
Jan 1970
time: 00:13
  Old Post 07-05-1999 07:51 Visit Mark_Everson's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Tens of threads period. (that's my estimate) Definately Not per civ.

I *think* the AI I'm drooling over can all be made to work with like 50% of the clocks, but we'll see. One Really cool thing about a Hot server would be to evolve AIs within it. Get ones that do well against a variety of playing styles, etc. That would be major fun.

For the AI the main thing we need is a good set of rules. Especially if the player has a slow machine and wants to run it flat out. But if you want it to be somewhat unpredictable (but not just by doing random stupid things) you need something like the GA. I think we need to do both, and
if the GA part takes too much time we will trim it or toss it. The GA is what might use a bunch of the threads. Trust me for now, but verify later ;-)

But we'll just have to look into the tradeoffs when we get further along.

Looks like squares is the way to go to me. You're right we need to talk about city/unit/etc image handling. Could you organize that?

-Mark

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0316 seconds (84.66% PHP - 15.34% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net