Hello Neszt,
Friday, April 4, 2003, 3:41:46 PM, you wrote:
NT> Hello!
>> 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...
NT> Yes, it is a solution, I know, but there are some cases, where You can not
NT> apply this method. This is solve the slow-quick moovement problem, but not
NT> the calling frequency.
NT> As I see, I would need a new thread, one for calculating the
NT> moving/rotating values, and one for opengl display() :-)))
May be you describe for what you need fixed redrawing?
cause there is no problem with high/low frequency (non-constant
value) if you synchronize animation. only fps must be higher than 30
for non-twitching picture... and if your fps is very high :)) turn on
VSync...
P.S. second thread - is bad idea, just calculate moving/roatating
values each "idle" time...
--
Best regards,
Astar mailto:As...@tu...
|