Wow. I wouldn't have thought that my blog on the render loop and doevents would
spark as much discussion as it did. Invariably everyone wanted to know what
i thought the 'best' way to do this was.
Actually, the answer is (naturally) 'It Depends'. It wasn't actually an oversight
on my part to leave out a recommendation at the end of the post, it was done intentionally.
I had hoped to spark peoples interest in learning the cost of the methods they were
calling, and pointing out a common scenario where the method had side effects that
many people weren't aware of.
However, since I've been asked quite a few times on alternatives, I feel obligated
to provide some. =)
Here are some alternatives, in no particular order.
Each of these obviously have benefits and disadvantages over the others. Pick
the one that best suits your needs.
PingBack from http://greengalaxy.wordpress.com/2008/11/16/application-loops-in-c-more-info/
PingBack from http://bobobobo.wordpress.com/2009/06/11/taking-advantage-of-controlstyles-allpaintinginwmpaint-controlstyles-userpaint-controlstyles-optimizeddoublebuffer-controlstyles-opaque/
PingBack from http://bobobobo.wordpress.com/2009/06/12/game-loop-in-c/