.FLI Player is now twice as fast
- Posted by Robert Craig <72614.1667 at COMPUSERVE.COM> Oct 23, 1996
- 1712 views
I hacked away on Peter Blue's .FLI code and managed to get it running twice as fast. It has gone from about 4 frames per sec. up to now 8 frames per second on a 486 DX-50. The new version is on the Official Euphoria page. (It still won't run any .FLI's that it wasn't able to before) I did several small things, plus one big thing to speed it up. The big thing was to change the algorithm slightly so it calls pixel() fewer times, but with more pixels to print each time. I believe a call to pixel() carries an overhead of about 30 units, where one unit equals the time to print one extra pixel (in a batch) on the screen. So it's a big win to do a long horizontal line of pixels at a time, rather than some short contiguous pieces. Rob Craig Rapid Deployment Software