@JessTicular, that could be a good idea.
We could test this program also:
Rem Project: memory usage test
Rem Created: 20/07/2005 11:36:15
Rem ***** Main Source File *****
CREATE BITMAP 1,512,512
GET IMAGE 1, 1, 1, 512, 512, 0
DELETE BITMAP 1
save image "test.bmp", 1
DELETE IMAGE 1
while mouseclick()=0
inc i
cls
set cursor 0,20
print "SYSTEM SMEM AVAILABLE = ", SYSTEM SMEM AVAILABLE()
print "next image = ", i
load image "test.bmp", i : rem add ,1 at the end for load without mipmapping
print "loaded, ", i
sync
EXIT PROMPT "TOTAL LOADED = "+str$(i), "END OF MEMORY TEST"
endwhile
It creates an image, saves it to disk, and try to load it as many times as it can. Add ",1" at the end of the "load image" command, to turn off mipmapping.
I suggest that if any of you hasn't still upgraded to 5.8, test it for us.
My numbers:
171 512x512 images loaded with mipmapping
1682 512x512 images loaded withOUT mipmapping
Now here is the strange thing, if we calculate the total memory used with mipmapping:
(
1x512 = 1Mb +
1x256 = 0,5Mb +
1x128 = 0,25Mb +
1x64 = 0,125Mb +
1x32 = 0,0625Mb +
1x16 = 0,03125Mb +
1x8 = 0,015625Mb +
1x4 = 0,0078125Mb +
1x2 = 0,00390625Mb +
1x1 = 0,001953125Mb ) * 171 images = 341,6 Mb
But if we calculate the same WITHOUT mipmapping, we have:!
(1x512 = 1Mb ) * 1682 images = 1682 Mb !!!!!!!!!!!!!
I would have expected to load 341 images of 1Mb, not 1682! The swap file grown to 1.2Gb! Now this is using ALL my memory, FIVE times more than before!
If the same memory would be used with mipmapping, I estimate I would be able to load about 800 images (4.6 times more than 171).
So there's something wrong with the load, not being able to load the mipmapping "not locally" or something...
Please tell us your numbers
Oh yeah, my specs:
512Mb Ram
128Mb Video Ram
256Mb AGP aperture size
1593Mb Swap file