Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2002:
[Freeciv-Dev] Re: server/settlers.c cleanup 3
Home

[Freeciv-Dev] Re: server/settlers.c cleanup 3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per I Mathisen <per@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: server/settlers.c cleanup 3
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Apr 2002 10:19:05 -0500

On Sun, Apr 14, 2002 at 04:57:19PM +0200, Per I Mathisen wrote:
> On Sun, 14 Apr 2002, Raimar Falke wrote:
> > So you want to add a mort parameter or a global mort variable?!
> 
> I want pplayer->patience (or pplayer->mortification).
> 
> This set in the beginning of the turn, based on city loss (don't build
> larger than life stuff when our life is rapidly coming towards an end)
> game.turn (don't build wonders on turn 3), and on end year/space race
> arrival (the benefit of long-term solutions closer to endyear/arrival
> should be much less).
> 
> > Why is FLT_EPSILON needed?
> 
> I have no idea. I just did copy&paste and tested it. Should I try some
> test with it removed?

does the return value for amortize ever find itself in the denominator
of some division?

> 
> > BTW: In another project we came to the result that double was faster
> > than float.
> 
> I'll test that.

I highly doubt this is a general rule. Increasing precision should
always decrease your performance.

-mike


[Prev in Thread] Current Thread [Next in Thread]