1. .FLI Player is now twice as fast
- Posted by Robert Craig <72614.1667 at COMPUSERVE.COM> Oct 23, 1996
- 1897 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
2. Re: .FLI Player is now twice as fast
- Posted by Jacques Deschjnes <desja at QUEBECTEL.COM> Oct 23, 1996
- 1889 views
- Last edited Oct 24, 1996
Robert Craig wrote > 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 I added a slight modification to Play-fli.e in procedure ByteDelta() I replaced for c = 1 to byt do h = h + 1 hz[h] = getc(ifc) end for by for c = h to h+byt do hz[c] = getc(ifc) end for h = h + byt this should give a slight improvement in speed. Jacques Deschenes
3. Re: .FLI Player is now twice as fast
- Posted by Robert Craig <72614.1667 at COMPUSERVE.COM> Oct 23, 1996
- 1857 views
- Last edited Oct 24, 1996
Jacques Deschenes writes: > I replaced > for c = 1 to byt do > h = h + 1 > hz[h] = getc(ifc) > end for > by > for c = h to h+byt do > hz[c] = getc(ifc) > end for > h = h + byt > this should give a slight improvement in speed. Good idea Jacques. Of course you really meant: for c = h+1 to h+byt do Rob Craig Rapid Deployment Software