Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] Re: (PR#8073) win32: unit moves aren't smooth
Home

[Freeciv-Dev] Re: (PR#8073) win32: unit moves aren't smooth

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8073) win32: unit moves aren't smooth
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Mar 2004 15:20:12 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8073 >

James Canete wrote:

> Looks like 10ms resolution, which I suppose is alright, especially when
> you take into account that that's the equivalent of a 100hz refresh rate.

Should be okay.

> It fixes the animation, but we waste a lot of time erasing and redrawing
> the sprite when it hasn't moved.  Other programs might want to have that
> time.  :)

Err, oops.  I guess I didn't consider that we might be spinning in 
place.  This is easy enough to fix, though it does mean a few ugly lines 
of code.

> So the timers are good for just animation, but are there any situations
> in the code where we'll need 1ms resolution?

Doubtful.  Of course if you can find a better function we can use it.

jason




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