|
From: <vla...@gm...> - 2007-08-29 13:44:50
|
Uhm, threads are tricky. They do not seem tricky, but they are. I have seen and worked on my share of threaded programs and there is usually no visible speed benefit. A poorly designed application with threads can be slower than a simple single-thread solution. Threads will only benefit you if you: a) expect that the time needed to render subsequent frames will be very variable b) or if you'll use more than one thread (and more than one processor) to work on multiple frames concurrently Otherwise, if you expect the frame rendering times to be roughly the same and that one processor should be able to handle the animation nicely, just stick with single thread. You will save yourself a lot of useless work. Use UpdateWindow to make things a bit smoother. And one more thing, you do not want to use realtime priority on your worker thread. |