Whats Faster??
BlitzPlus Forums/BlitzPlus Programming/Whats Faster??
| ||
hi all, i was wondering what would be faster, drawing 10 small 32x32 images or dynamicaly scaling one image via the ScaleImage Command and then drawing just that one image... tnx |
| ||
Well, I remember that in slower systems, it was usualy better to split and image into smaller images. With Blitz and modern PC's I'm not sure, seems to me that they are so fast, that it's difficult to percieve any difference. Would be a matter of carrying out some tests. |
| ||
The ScaleImage command is not intended for realtime scaling, so I recommend you use 10 small 32x32 images. |
| ||
yeah, 10 32x32 images is very fast. i've got 315 24x24 images onscreen and it runs like lightning. |
| ||
cool thanks alot !!! ;) |
| ||
Scaling is slow. Well, I remember that in slower systems, it was usualy better to split and image into smaller images. I think drawing a lot of small images is slower than drawing one big image, because of the extra work that has to be done for each individual image (as the total amount of pixels is the same). When I tried my tile engine with smaller tiles it got slower, if I remember correctly. But maybe it also depends on what kind of video system you use, how much memory it has, etc. |