Memory management w/ large images

jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
edited November -1 in Working with GS (Mac)
I've got some questions about memory management with large images. I've got 4 notices that popup when you die, and I mistakenly make them all seperate. Each one was taking up a 1024x1024 memory space, so I'm going through and combining them into one. But I had a thought.

Would it be better to have them initially set to a 10x10 blank PNG and only change the image to the large image when needed? If I switched back to the 10x10 png after displaying the notice, would that release the memory?

Or

would it be better to split the image up into smaller segments? I could get away with 3 images, one about 200x600, another 200x400 and one 200x200 (these are just estimates). Basically, does 4 512x512 images take up the same, less or more memory space than 1 1024x1024 image?

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    try it on the GS viewer
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I would, but I'm at work for the next 10 hours.
  • MotherHooseMotherHoose Member Posts: 2,456
    I did the blank png (6x6) and changeImage (with correct size for display) in Art in the Louvre... and if I recall that was runtime memory efficient.

    possibly because the way our computers read images doing a line-thru on one image is more efficient than doing 4 line-thrus on 4 images simultaneously... it's less complex a task... Tho computer works in nanoseconds and all seems instantaneous.

    MH
Sign In or Register to comment.