1. Win32Lib Timers
Hi,
I've written a Win32 program that does some animation that I am rewriting
to use a timer as opposed to busy-waiting. The busy waiting works fine
but utilizes 100% of CPU resources while it goes through an empty loop
waiting for every 5 milliseconds to occur. The problem with the timer
approach is that if I set up a timer to tick every 5 milliseconds I don't
get near that resolution (i.e. busy waiting produces faster animations).
I can speed up the timer animation by increasing overall CPU utilization
(by moving my mouse cursor over the start bar) so I know it _can_ go
faster. So my question is, how do I force my program to see more ticks?
-- Brian Broker
2. Re: Win32Lib Timers
I'll mention (unhelpfully) that the Win32 documentation says that if an
application is busy when a timer goes off, it won't even bother sending the
event.
-- David Cuny