|
From: Udo G. <ud...@no...> - 2007-08-27 09:06:57
|
Hello Peter,
Monday, August 27, 2007, 10:59:19 AM, you wrote:
P> while(1)
P> {
P> update object
P> render object
P> sleep(1)
P> }
P> is runngin in animation thread..
Tried to drop that "sleep(1)"? I know, this will maximize CPU usage
and other threads may become slow, but after all you're running on a
preemptive multitaking OS and sooner or later you probably handle
windows messages, so that will yield CPU resources to other threads
anyway.
Udo
|