Advice for optimising

debugdesigndebugdesign Member Posts: 886
edited November -1 in Working with GS (Mac)
Hi,

I have almost finished my game and I started it before I found out about the rule of 2.

So now I am going through the images, opening them in Photoshop and shrinking the image size to fit with the rule.

If I now replace the images in the GS file will this shrink the file size and optimise the game or do I need to start a fresh.

thanks

Comments

  • reddotincreddotinc Member Posts: 653
    Isn't it the rule of 4 now with iPhone 4 images?

    If you replace the images then you should be fine, I have done this and my game is running fine :)

    // Red Dot Inc
  • JCFordJCFord Member Posts: 785
    Yes you will be okay, but sometimes the actor may keep the old dimensions, so open up and check the width and height of each actor are correct and hold the new values.
  • ForteForte Member, PRO Posts: 297
    Whats this rule?
  • debugdesigndebugdesign Member Posts: 886
    I have changed about 50 images and trimmed quite a bit of KB, but the project size remains the same...

    this is what I was worried about... as GS has already compiled the images already, are the new smaller file sizes going to make a difference.

    @Dragonkillz - The rule of 2 is that GS loads images in set sizes, 2, 4, 8, 16, 32, 64, 128, 256, 512, and 1024... so if you have an actor that is 40px across and 80px high it will use the same memory as if it was loading a 64px x 128px... so if you made it smaller, such as 32px by 64px it would use half the amount of memory. I'm sure there are better explanations on the forum
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Did you delete all the originals and reapply the new ones? That should fix it.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Also that project size on the Home Screen usually isn't accurate. Do a quick build to see the true size.
Sign In or Register to comment.