Memory usage Problem

1UpGamestudio1UpGamestudio Member Posts: 213
edited November -1 in Working with GS (Mac)
I to all,
my game use 150,00Mb memory.
Image: 84Mb
Sounds: 700Kb
Game Engine: 39Mb
Other: 35Mb

I want to know how to lower memory consumption and let me know what you mean by OTHER.

thanks

Comments

  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    OMG! What kind of game are you making?
    Other contains music for sure, but I don't know what else.
  • joshmiller602joshmiller602 Member Posts: 206
    150MB is extremely high. The "Other" category is the least of your worries.

    Make sure your images are all the correct size to optimize RAM usage. Remember to use the "POWER OF 2" rule, which means making graphics sizes that are (2,4,8,16,32,64,128,256,512,1024) in width or height.

    An image that is 100 pixels by 100 pixels will use the same memory as one that is 128 x 128.

    Therefore if you use a picture that is 110 x 130 then it will use the same memory as a 128 x 256 graphic, resizing it down to something that falls within the "Power of 2" will result in better memory usage.
  • joshmiller602joshmiller602 Member Posts: 206
    Oh, and P.S.

    If you are new to GS, I would highly recommend getting the Gamesalad Handbook from Photics (http://gamesalad.com/forums/topic.php?id=9334). Saved me HOURS of researching and has a whole section on Memory Usage. It's cheap...
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    thanks but the topic is not found.
    I have in my game 12 background 800x800 - 1 background 480x320 and same sprite 50x50.
    the game run slow in some places.
    I have 5 animation 480x320 of 10 frame
  • joshmiller602joshmiller602 Member Posts: 206
    Sorry...here it is: http://photics.com/books/gamesalad-textbook

    Good Luck :)
  • joshmiller602joshmiller602 Member Posts: 206
    Good point TSB. If the images are 800 x 800, and are being recognized as 1024x1024...that is a 40% increase for each image!
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    but i want rotate background and if I do smaller wheel when you see the edges.
    but if I make the image 512x512 and then increase from attribute dimensions are viewed as large or small images?
  • joshmiller602joshmiller602 Member Posts: 206
    That would work, but it would degrade the quality as you would be just stretching your images out...
  • 1UpGamestudio1UpGamestudio Member Posts: 213
    yes but i want make the background zoom in-out for ramdom seconds
Sign In or Register to comment.