Splitting up images for the sake of saving RAM

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited January 2012 in Working with GS (Mac)
Wondering what your opinion is on this before I test the theory....

I'm about to split a 1024x220 image into 2x 512x110 images to see if that would save on RAM? Or would that be redundant....hmmmm.....(sips wine)

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    how can you split that? the 1024 is 4 times bigger then the 512 one

    and also the ram count on 2,4,8,16,32 (the power of 2)
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    What do u mean HOW? 1024x220 /2 = 512x110.........
  • calvin9403calvin9403 Member Posts: 3,186
    it is 2D not 1D

    you have to split to 4 images
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Huh? It's a simple question regarding RAM man...Just wondering if more RAM is saved if I split a single image in two equally.... C'mon one of the regulars please lol.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi TTG, as recommended, cut your image into 4, because:

    Your 1024 x 220 is loaded into RAM as a 1024 x 1024 image. So if you cut it into 4 equal pieces, each measuring 256 x 220 each, these will be seen as 4 images each with sizes of 256 x 256. This would make an area of 512 x 512, which is a quarter the memory needed than if it was seen as 1024 x 1024.


    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    edited January 2012
    Thank you! What I needed to hear, cheers!

    ps...I know a David Griffin...
  • calvin9403calvin9403 Member Posts: 3,186
    TTG what are you talking about? You say you will split in to two then it should be 2 512 by 220 or 2 1024 by 110

    Don't know who is the irregulars lol
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    @TouchTiltGames quote: "ps...I know a David Griffin..."

    Ah yes, but is he as suave and sophisticated as wot I am.... snigger! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    dude whaa? Are you serious?

    And I've been on here for over 2 years...Put your pacifier down.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Well he lives in Vancouver...where I used to live so, probably not the same ;)
  • calvin9403calvin9403 Member Posts: 3,186
    @TTG I don't want to start a fight here, but you are the one that start to attack people

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    No one implied I was starting a fight...it would help if you wrote proper English though.
  • calvin9403calvin9403 Member Posts: 3,186
    edited January 2012
    What did I even said? And beside I don't think it is near October yet
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    edited January 2012
    LOL nope it's not Halloween yet buddy so you got lotsa time to prepare for your Warlock costume.

    And it's: "What did I even say? Besides, I don't think it's October yet..."
  • calvin9403calvin9403 Member Posts: 3,186
    edited January 2012
    You know when did you join yourself

  • firemaplegamesfiremaplegames Member Posts: 3,211
    edited January 2012
    I just wanted to briefly reopen this and say that if it was me, I would not split up the images.

    Your images get loaded into texture memory. The memory is allocated in "chunks" that have sizes that are powers of two: 2,4,8,16,32,64,128,256,512,1024.

    However, the memory "chunks" do NOT have to be square.

    Your image would fit into a memory chunk of 1024x256.

    Splitting up the image wouldn't save any RAM in this case.

    In fact, it would add another Actor to the Scene with all the performance overhead that that would cause.

    So I vote NO to splitting up the images ;)

    Joe
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Thanks from me, Joe, useful to know. I always thought that it was seen as square of the max. dimension (on this week's episode of Square and the Max Dimension....) Don't know how that got into my head. Anyhow, i learn something new every day! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.