Thanks for looking into it, everything seems to work as expected, it takes 260ms to load all the frames initially with drawpic -cp (for the laugh.gif, instead of 3 seconds with /drawpic, an hidden picture window and a while loop), after that all the drawpic are done within 2ms (usually under) and the display is smooth.

One question though, can you explain why (change %f accordingly):
//drawpic -c | var %f C:\Users\Ouims\Downloads\laugh.gif,%a 0,%b $pic(%f).frames | while (%a < %b) { var %t $ticksqpc,%d $pic(%f,%a).delay | echo -sg %a : %d in $calc($ticksqpc - %t) | inc %a }
The first call to $pic(,0).delay takes 0ms while the remaining call to $pic(,N).delay with N between 1- take between 4 and 6 ms constantly. This is unexpected.
Quote
0 : 30 in 0
1 : 40 in 6
2 : 30 in 6
3 : 30 in 5
4 : 40 in 6
5 : 30 in 5
6 : 30 in 5
7 : 40 in 6
8 : 30 in 5


#mircscripting @ irc.swiftirc.net == the best mIRC help channel