Click to See Complete Forum and Search --> : How to::Timing mechanism and synronization in MFC?


besleme
November 25th, 2008, 07:15 AM
hi
in a 3D graphics based MFC SDI application which method should i use to construct my frame loop?
Should i override OnIdle()?
or some other high resolution timing mechanism other than WM_TIMER?
Should i consider Multimedia timers?
Infact the right question would be should i use OnIdle or timers?
Main application is getting network data packets from different UDP ports each port has 50 hz throughput ( for every 20 ms for each packet ). Those data will be drawn on the screen.
3D framework used in application (VegaPrime) starts its own frameloop whenever framework application class (vpApp) is constructed after and MFC View is given as a drawing Window handle that 3D rendering context is related.

So i'm getting confused how to implement timing and synchronization in that MFC application?

help is needed..

thx alot.