I have an Image with N frames, each MxM pixels in size. I want to animate this movie as efficiently as possible ensuring a *constant frame rate*.
In a a loop like
SetBlend SOLIDBLEND
For j=1 To ntimes
For n=0 To (N-1)
DrawImage image,M,M,n
FlushMem
Flip
Next
Next
I see often that the first few seconds things are slowed down and jerky over time... They later settle, but there is difficult to see if the loop is running in real-time or not.
Is there a way to ensure a constant frame rate?
Is there a way to check if Flips are occuring at the frame rate set by the graphics mode?
Does 'flip' block execution until the next VSYNC?
Thanks in advance....
--
Dario
In a a loop like
SetBlend SOLIDBLEND
For j=1 To ntimes
For n=0 To (N-1)
DrawImage image,M,M,n
FlushMem
Flip
Next
Next
I see often that the first few seconds things are slowed down and jerky over time... They later settle, but there is difficult to see if the loop is running in real-time or not.
Is there a way to ensure a constant frame rate?
Is there a way to check if Flips are occuring at the frame rate set by the graphics mode?
Does 'flip' block execution until the next VSYNC?
Thanks in advance....
--
Dario