This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: exploring_worth sub-module functions (Was Re: Side Mask)
- From: Jim Kingdon <kingdon at panix dot com>
- To: hronne at pp dot sbbs dot se
- Cc: xconq7 at sources dot redhat dot com
- Date: Wed, 24 Jul 2002 14:06:57 -0400 (EDT)
- Subject: Re: exploring_worth sub-module functions (Was Re: Side Mask)
- References: Message <1027465009.4753.664.camel@localhost.localdomain> from Lincoln Peters <peters2000@mindspring.com> on23 Jul 2002 15:55:50 -0700. <l03130302b96481ba9090@[217.115.39.40]>
> each unit blast has to stay on the screen for a fraction of a second in
> order to be noticed by the human eye. So xconq wastes a lot of cycles
> looping in the animation code.
Why not call usleep() ? It is in the Single UNIX Specification so it
should be available on any Unix. Dunno about Mac and Windows but we
could always fall back to the looping code if there are systems
without usleep.
> First, I cut the animation times by 50%.
Not sure I like this one. It can be hard enough to see what is going
on as it is.
> Second, I added pre-flight code that makes sure the animation loop
> only executes for unit blasts and firing lines that are visible on the
> screen.
I think I like this one. Seems kind of silly to be spending the time
on an off-screen battle (e.g. between two AIs).