|
From: Astar <As...@tu...> - 2003-04-03 23:36:23
|
Hello Neszt, In my opinion, it will be better to draw on idle (not WM_PAIMT, but when there is no any messages to translate in main loop). and synchronize all moving/animation/etc by multiplying step to reciprocal for fps. I do so, and i have smooth moving/rotation/etc... if you want source - try to my e-mail... NT> As I know, all the paint function should use after WM_PAINT. It is NT> also true for opengl display? I need to call the display() function 50 NT> times in every secounds. At this point of time, I use it after WM_PAINT, NT> and it seems like, the calls are happens as fast as it can. My solution to NT> aviod these quick calls is when the display() called, in the display() I NT> check the glut elapsed time, and if this is greather than 1/50 sec, I let NT> the display run over. NT> This is not good, as the results shows. The opengl moovings, rotatings, NT> and any other moovement not nicely continuous. NT> So, Is there any mode to set somehow the window, to call the WM_PAINT in NT> every 1/50 sec? P.S. sorry for my english :)... -- Best regards, Astar mailto:As...@tu... |