Running larger tests has more variety of responses which could suggest a problem with my testing.
9/10 times loadpixmappng is faster (for me). Admittedly between 1-60ms. Lower numbers of loads show a larger difference
e.g. 5 images show between 1-15ms difference... for me.
Please can some run/check/correct the following...
<edit> Scratch all that. They do seem the same if I load a dummy image first then run through the loops.
<edit2> In fact, scratch it all again. Getting some very odd results. Still suggests Loadpixmappng is slightly quicker but results vary too much to be sure.
9/10 times loadpixmappng is faster (for me). Admittedly between 1-60ms. Lower numbers of loads show a larger difference
e.g. 5 images show between 1-15ms difference... for me.
Please can some run/check/correct the following...
Graphics 640 , 480 GCCollect() Local image:TImage t1:Int=MilliSecs() For x = 0 To 5 image = LoadImage("max.png") Next t2:Int=MilliSecs() GCCollect() Print "loadimage done" t3:Int=MilliSecs() For x = 0 To 5 image = LoadImage(LoadPixmapPNG("max.png")) Next t4 = MilliSecs() Print "loadpixmap done" Print t2 - t1 Print t4-t3
<edit> Scratch all that. They do seem the same if I load a dummy image first then run through the loops.
<edit2> In fact, scratch it all again. Getting some very odd results. Still suggests Loadpixmappng is slightly quicker but results vary too much to be sure.