How does Gamesalad calculate the amount of image memory used in the viewer?
Hello,
I was wondering how does Gamesalad calculates the amount of image memory used in the viewer? Is there a formula I can use to make sure it always gives the correct number.
Here is a test I ran. New iPad retina project with just 1 image each time.
I have a 1024 by 256 image and it comes up as 1mb in Gamesalad viewer under image memory. If my memory serves me correctly shouldn't it be 1024x256x2 for 512kb for memory used not 1mb in Gamesalad viewer?
Also ran another test 2048 by 1536 and it comes up as 8mb and on some occasions 16mb "not sure as to why 16mb". Wouldn't this be 2048x1536x2 for 6mb instead of 8mb or 16mb?
Thanks
I was wondering how does Gamesalad calculates the amount of image memory used in the viewer? Is there a formula I can use to make sure it always gives the correct number.
Here is a test I ran. New iPad retina project with just 1 image each time.
I have a 1024 by 256 image and it comes up as 1mb in Gamesalad viewer under image memory. If my memory serves me correctly shouldn't it be 1024x256x2 for 512kb for memory used not 1mb in Gamesalad viewer?
Also ran another test 2048 by 1536 and it comes up as 8mb and on some occasions 16mb "not sure as to why 16mb". Wouldn't this be 2048x1536x2 for 6mb instead of 8mb or 16mb?
Thanks
Comments
Check this out it. This should help under stand it a little but unfortunately there is more factors that just size. The colors and alpha channels have a little to do with it as well.
I'm stumped to as why a image thats size is 2048 by 1536 would show up as 8mb of ram use under image memory in the viewer and a different image of the same size would show up as 16mb.
Such a huge difference. I just noticed something that might explain the reason behind it. If a image has transparency in it, it calculates it as twice the ram hence why the image of 1024 by 256 was showing up as 1mb. I took the same exact image and added a white background and then the image ram in viewer went down to 512 kb.
Has anyone else ever noticed this?