Saving many attributes - iPhone

IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
edited November -1 in Working with GS (Mac)
Hello, did anyone ever checked how many attributes is safe to save at once (iPhone)?
I'm asking because I need to save about 20-30 attributes in the same moment, and I'm wondering if this amount isn't too big.

Thank you.

Comments

  • ORBZORBZ Member Posts: 1,304
    i don't have a definitive answer for this, but i would suspect that you can save many thousands of attributes without problems.

    the ranges you may encounter difficulties, IF THEY EXIST, would be:

    Number of attributes:

    256 (1 byte memory range [not likely])
    65,536 (2 byte memory range, 16-bit [maybe])
    4,294,967,296 (4 byte memory range, 32-bit [most likely])
    no limit [very most likely]

    However, I doubt you are going to find such limitations as it would be artificial.

    Test it! Let us know what you find out :)

    I don't know how Gendai built persistent storage, but my HOPE is that they used the CoreData framework that is part of CocoaTouch, if so then there is no limit to what you can do for storage. For performance reasons I would not store values in persistent storage over and over again with only a nano-second apart (like in a 1/2s timer or something). Although I believe CoreData is buffered.

    I'm very curious to know what the results of your tests are.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    My games save and load over 300 Attributes and I haven't noticed a problem.

    So 256 is definitely OK. I'll let somebody else test the higher numbers...:0)
Sign In or Register to comment.