#FLI TIMING
26-Aug-93 13:13:08
Sb: #54940-#FLI TIMING
Fm: MARTIN G FOSTER 70303,456
To: Mark Dickenson 72262,2534
Mark,
flics are timed in "jiffies". A "jiffie" is a 1/70th of a second pause between
frames. Thus, a playback speed of 7 would be 7/70ths or 1/10 of second pause
between frame updates. The variable here, as in any digital, delta-compressed
animation is the time it takes to load the next frame – usually represented by
the amount of change from the previous frame.
Here's a POCO routine that will more closely give you 30 frames per second
(courtesy of James Hyde). You may have to adjust the SetSpeed value in
parentheses depending on your hardware. This one works for me pretty well to
get close as possible to 30fps, providing the frame updates in my animation
aren't too big. Type this into the POCO editor, save it, and run it.
main()
{
int frame_count;
frame_count=GetFrameCount() * 1000;
SetSpeed(31);
PlayFlic(frame_count);
}