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

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

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8073) win32: unit moves aren't smooth
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Mon, 15 Mar 2004 14:47:17 -0800
Reply-to: rt@xxxxxxxxxxx

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

I tested it out on win32:

1: read_timer_seconds: 0.000000
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 2 times (total 6 repeats)
1: read_timer_seconds: 0.010000
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 4 times (total 8 repeats)
1: last message repeated 1 time (total 9 repeats)
1: read_timer_seconds: 0.020000
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 4 times (total 8 repeats)
1: last message repeated 1 time (total 9 repeats)
1: read_timer_seconds: 0.030000

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.

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.  :)

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

-James Canete


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