A scene with one image takes 42 megs of RAM... Why?
I'm doing a test scene to see if I can optimize my images before I start my new game. I have a png that is 512X256 and it's 111K on the hard drive. I turned off "movable" and set the restitution to "0" in Gamesalad. When I preview the scene that contains 1 image with no behaviors added, I get these stats from the remote preview:
Images: 256 KB
Sounds: 0 KB
Game Engine: 3.5 MB
Other: 39.1 MB
Total: 42.9 MB
This is one image and it takes 42.9 MB to run it. I MUST be doing something wrong. I thought I covered all of the bases, but there's got to be something else that I just don't know about.
Anyone got any thoughts?
Images: 256 KB
Sounds: 0 KB
Game Engine: 3.5 MB
Other: 39.1 MB
Total: 42.9 MB
This is one image and it takes 42.9 MB to run it. I MUST be doing something wrong. I thought I covered all of the bases, but there's got to be something else that I just don't know about.
Anyone got any thoughts?
Comments
What else are you doing? I that the first scene? Do you have any other rules or sounds or other things loading?
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Open a new project with nothing else, drop your image in and test it that way
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I'm guessing all this extra is for the stuff GS adds, such as the ident at the beginning and anything else, an it tells you here rather than later so you can work to a max file size more accurately?
Better to test on a device.
Having said that a blank project running a device takes up 10MB of RAM (with GS 0.9.7.1)
how to check it on the device
One question... Have you quitted the viewer app between tests? If not, do so, as it builds in memory after each test and the only way to get a true reading is to quit the viewer and restart it. If by chance you don't know how to do this- hit the home button on the device. then double click the home button to bring up the apps that are running in the background. Find the viewer icon and then hold it down until it starts to wobble and brings up the x in the corner and then press the x to quit the app totally. Then restart the app.
kipper
A blank project on my iPAD was starting at 6 megs , now its gone up to 15!!
Shadows Peak is an atmospheric psychological horror that explores the dark side of a player.