public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Stan Shebs <shebs@apple.com>
To: Hans Ronne <hronne@comhem.se>
Cc: Peter Garrone <pgarrone@acay.com.au>,
	xconq7@sources.redhat.com, mcdonald@phy.cmich.edu
Subject: Re: Major problem with the path code
Date: Tue, 02 Dec 2003 11:20:00 -0000	[thread overview]
Message-ID: <3FCC1915.80203@apple.com> (raw)
In-Reply-To: <l03130301bbe92f3554f9@[212.181.162.155]>

Hans Ronne wrote:

>
>>The pathfinding is now implemented as part of the action code, and that
>>is wrong, it should be part of the player code, because the path that
>>is found is only ever hypothetical. Also it ie expensive, so should not
>>be replicated on all computers in a networked game. So have pathfinding
>>called from task.c, but not move.c.
>>
>>This would require that move tasks be private to each player, and not
>>broadcast over the network. So the logical thing to do is to stop
>>broadcasting all tasks, only actions, and for each game loop to only
>>process local ai players. Also the shared state should not include
>>tasks or plans. Plans should be private, it should be irrelevant to the
>>referee code what the plan for each unit should be, only what its
>>actions are.
>>
>
>I agree. I discussed this with Stan a long time ago. I remember that he had
>some good arguments why plans and tasks also should be broadcasted, but I
>am not sure to what extent they still apply today. They might have had to
>do with performance, which is not an issue any longer. I will have to do
>some email archeology to find out. Or maybe Stan can comment on this?
>
OK, I've been trolled - or more accurately, had the lure bobbed up and down
in my face. :-)

All I remember ("my mind is going, I can feel it") is that if a task had to
broadcast all the actions it generated, it seemed like it would be a lot of
extra traffic for slow connections. The more synchronized state you have,
the more you can do locally. I also wasn't expecting to support much 
per-peer
variability at the plan/task level, because those are made at least partly
visible to the UI, and it would be good to have at least a modicum of
consistency by wiring it into the kernel.

These don't seem like really strong arguments though; I suspect everything
could be made to work OK with local plans and tasks.

Stan


  reply	other threads:[~2003-12-02  4:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l03130300bbe6714d52a1@[212.181.162.155]>
     [not found] ` <20031123101615.GB10513@leonardo>
     [not found]   ` <l03130301bbe7fdde24ca@[212.181.162.155]>
2003-11-25 16:30     ` Peter Garrone
2003-11-26  0:23       ` Eric McDonald
2003-11-26 23:38         ` Peter Garrone
2003-11-29 18:33           ` Eric McDonald
     [not found]   ` <20031125093515.GA551@leonardo>
2003-11-25 17:05     ` Hans Ronne
2003-12-02 11:20       ` Stan Shebs [this message]
2003-12-03 22:03         ` Peter Garrone
2003-12-03 22:24           ` Peter Garrone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FCC1915.80203@apple.com \
    --to=shebs@apple.com \
    --cc=hronne@comhem.se \
    --cc=mcdonald@phy.cmich.edu \
    --cc=pgarrone@acay.com.au \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).