Splitting up images for the sake of saving RAM
Wondering what your opinion is on this before I test the theory....
I'm about to split a 1024x220 image into 2x 512x110 images to see if that would save on RAM? Or would that be redundant....hmmmm.....(sips wine)
I'm about to split a 1024x220 image into 2x 512x110 images to see if that would save on RAM? Or would that be redundant....hmmmm.....(sips wine)
Comments
and also the ram count on 2,4,8,16,32 (the power of 2)
you have to split to 4 images
Your 1024 x 220 is loaded into RAM as a 1024 x 1024 image. So if you cut it into 4 equal pieces, each measuring 256 x 220 each, these will be seen as 4 images each with sizes of 256 x 256. This would make an area of 512 x 512, which is a quarter the memory needed than if it was seen as 1024 x 1024.
----------------------------------------------
http://davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
ps...I know a David Griffin...
Don't know who is the irregulars lol
Ah yes, but is he as suave and sophisticated as wot I am.... snigger! :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
And I've been on here for over 2 years...Put your pacifier down.
And it's: "What did I even say? Besides, I don't think it's October yet..."
Your images get loaded into texture memory. The memory is allocated in "chunks" that have sizes that are powers of two: 2,4,8,16,32,64,128,256,512,1024.
However, the memory "chunks" do NOT have to be square.
Your image would fit into a memory chunk of 1024x256.
Splitting up the image wouldn't save any RAM in this case.
In fact, it would add another Actor to the Scene with all the performance overhead that that would cause.
So I vote NO to splitting up the images
Joe
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps