A scene with one image takes 42 megs of RAM... Why?

chaleychaley Member, PRO Posts: 226
edited November -1 in Working with GS (Mac)
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?

Comments

  • v00d0v00d0 Member Posts: 143
    mmm is not normal! MY scene with lot of images spawns timers in timers etc take 90 mega :S
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Your image only takes up 256kb of ram

    What else are you doing? I that the first scene? Do you have any other rules or sounds or other things loading?
  • chaleychaley Member, PRO Posts: 226
    Nothing else. This was done as a pure test. There is one image with nothing else anywhere in the scene. No behaviors anywhere.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    How many scenes?

    Open a new project with nothing else, drop your image in and test it that way
  • Rob2Rob2 Member Posts: 2,402
    an empty project gives 9 megs on my 3gs so something is up !!
  • chaleychaley Member, PRO Posts: 226
    It was a fresh scene. I placed one image into a new scene and there are no other scenes in the project.
  • okkleokkle Member Posts: 32
    I tried a completely empty scene on an iPod Touch 4, it was 12.4 megs. I added a second scene and tried it again and it was 12.9 megs.

    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?
  • rnyacoubrnyacoub Member Posts: 132
    im using the latest viewer and using ios 4.3 on the simulator and when i open an empty project and running the simulator i got a total memory use of 35 Mb is that normal??
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    rnyacoub said:
    im using the latest viewer and using ios 4.3 on the simulator and when i open an empty project and running the simulator i got a total memory use of 35 Mb is that normal??

    The simulator gives you inflated figures.

    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)
  • rnyacoubrnyacoub Member Posts: 132
    thanx,but
    how to check it on the device
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    rnyacoub said:
    thanx,but
    how to check it on the device

    Install the GS viewer on your device. You'll need an apple dev account to do that.
    Rob2 said:
    an empty project gives 9 megs on my 3gs so something is up !!

    I can't remember if it did that before or if it started happening with a recent update. Maybe 0.98 will sort it out...?
  • chaleychaley Member, PRO Posts: 226
    Would a re-install do anything? I haven't heard of anyone else with such an extreme hop up as the one I'm seeing.
  • chaleychaley Member, PRO Posts: 226
    yes?
  • OmenaboOmenabo Member Posts: 121
    Apparently gamesalad adds 40Mb+ in "other" -memory, when using the viewer. I don't know if there is a cure for this.
  • old_kipperold_kipper Member Posts: 1,420
    This maybe a lesson in egg sucking for some but just in case...

    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
  • Rob2Rob2 Member Posts: 2,402
    @Chaley what device are you testing on?

    A blank project on my iPAD was starting at 6 megs , now its gone up to 15!!
  • chaleychaley Member, PRO Posts: 226
    old_kipper said:
    This maybe a lesson in egg sucking for some but just in case...

    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

    Yup... started a fresh session. Just quit it... started again... same deal.
  • chaleychaley Member, PRO Posts: 226
    Rob2 said:
    @Chaley what device are you testing on?

    A blank project on my iPAD was starting at 6 megs , now its gone up to 15!!

    With Remote Preview, I'm trying the IPhone 4.0 & 4.1
Sign In or Register to comment.