|
From: avlomwel <av...@fi...> - 2004-08-13 13:28:01
|
On Mon, 9 Aug 2004, Maurits van Rees wrote:
The proposed defines make it a little cumbersom, since you need to recompile
stats to switch to k. ships.
I had a look at the stats source. I think the define can be made a variable
without any impact on the code other than replacing SHIP_NR by some_var, and
pushing this var to where is it used.
Speed and memory impact are not all that great I think.
Speed hardly any, since almost everything uses the indexes.
The memory model is very lean compared to what most people are used to. Going
from 500 to 1000 ships ipmacts with approx 67k bytes when not using future
reporting. With the corrent settings of future reporting a good additional
half Meg will be consummed. I don't worry about this either.
We could just change the define to 999, and check the performance impact to
very the above. When is it low, we can keep it at that setting otherwise we
might need to turn it into a var.
greetigns;
Alexander
>
> Hi,
>
> Finally a mail to the list that actually gets through! :-)
>
> Well, my answer didn't get through. :-( I'm trying it with a different
> email addres now.
>
> On Sat, Aug 07, 2004 at 07:47:25PM +0200, avlomwel wrote:
> > Lodie;
> > I think all you need to do to get to 999 ships is to change
> > #define MAX_SHIP_ID 500
> >
> > This will ofcourse not work, but for now I don't know why it shoudl not.
>
> It looks like it could work. Maybe stats will get a bit slower then
> and use more memory.
>
> The phostpdk does it like this:
>
> #ifdef PDK_HOST999_SUPPORT
> # define SHIP_NR 999
> #else
> # define SHIP_NR 500 /*!< Max number of ships */
> #endif
>
> A look at phost4.txt and version.h in the phostpdk can give some ideas.
> http://phost-contrib.sourceforge.net/
>
> Maybe the unpack part of stats would have to be altered.
>
> Then there is the NumShips option in pconfig.src, only available in
> version 4 as that is the only version that knows how to handle more
> than 500 ships.
>
> BTW, I see in the phost 4 docs that vpa can handle 999 ships since
> version 3.58. So if we would want to use this in our Delft III game,
> there should be no trouble on the client side.
>
> --
> Maurits van Rees | ma...@va... | http://maurits.vanrees.org/
> "Let your advance worrying become advance thinking and planning."
> - Winston Churchill
>
> ----- End forwarded message -----
>
> --
> Maurits van Rees | ma...@va... | http://maurits.vanrees.org/
> "Let your advance worrying become advance thinking and planning."
> - Winston Churchill
>
---------------------------------------------------------------------
De mens wil helden omarmen om er daarmee zelf 1 te worden.
Eugene Roorda.
---------------------------------------------------------------------
|