-
Imagelists!!!!
Hello, I would like to share with you my new findings..
Using BitBlt and the SAME Project to generate a random 100x100 using 16x16 icons..
Total Icons: used: 5
showing 25x25 tiles at one time on the screen..
Having the icons in seperate Pictureboxes: 220 FPS
Using an IMAGELIST, same prefs as above test: 9 FPS
(I loaded the image into a picturebox, and Blitted from there)
Using an imagelist with autoredraw = false : 18 FPS
So.. hope you like my findings..
ALSO: There is one more test that I must run... i heard there is an API call to paint an ico in imagelist DIRECTLY onto the map picturebox.. *This is how i hear it anywayS* if someone could get me the code, i will run it through and check it's FPS.. but i am gonna look on this forum for it, and i'll post results once i get them.
-
-
Thanks..
Imagelist using the DRAW function: 72 FPS
Auto-redraw = false
with autoredraw on:
71 FPS
trying out the link that the other guy gave me.. more results will come
-
Using the code above, i managed to get this
ImageList_Draw Terrains.hImageList, MapValues(x, y), Map.hDC, x * 16, y * 16, ILD_TRANSPARENT
? Is that right? I get a VERY weird effect where sections do not appear..
anyways
Using that, I get 120 FPS..
couldn't really get it to work correctly I guess.. maybe if i figure it out some more..
-
Somewhat unrelated, but not totally.
Ive found several sections of code in an MS project that dont actually do anything. So, Dont trust anything that MS wrote. Besides, just by looking at coding styles, at least 5 people wrote the thing i was working on...
Z.