memory usage spike

NklrcadeNklrcade Member, PRO Posts: 95

Using GS preview for iPhone the 'Game Engine: is 52 MB' when i go from scene 1 to scene 2. When i change back to scene 1, the Game Engine spikes to 80 MB. When i change back to scene 2, the Game Engine spikes to 112, change back to scene 1 again, the Game Engine spikes to 140... and so on.

Is GS accumulating the Game Engine usage every time i change scenes? My total usage goes from 52 MB to 236 MB before my game crashes. Not sure where the extra Game Engine usage is coming from. Any ideas?

Comments

  • NklrcadeNklrcade Member, PRO Posts: 95

    figured out Game Engine Spike using tables. I shouldn't have added the equation within the tables value...

    I had (Row 2, Column 1) Value: (tableCellValue( game.tbl_Progress ,2,1)-1), which worked and did subtract 1 from the tables cell.

    I needed to add a Change Attribute...

    Change Attribute self.myTurn to (tableCellValue( game.tbl_Progress ,2,1)-1)
    Then change the table value (Row 2, Column 1) Value: self.myTurn

  • ZipfrazzleZipfrazzle Member Posts: 11

    An interesting observation i noticed is that it seems to be increasing by 28 MB (52-80, 112-140) in scene 2 and 32 MB in scene 1 back and forth. Maybe multiple instances of something is being loaded on top of itself?

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40

    whisper: How do you see that. Just curious.

  • NklrcadeNklrcade Member, PRO Posts: 95

    @Zipfrazzle said:
    An interesting observation i noticed is that it seems to be increasing by 28 MB (52-80, 112-140) in scene 2 and 32 MB in scene 1 back and forth. Maybe multiple instances of something is being loaded on top of itself?

    Nope. No instances, just a simple case of needing to spell it out in GS. I have a habit of combining rules and they tend to trip each other up.

Sign In or Register to comment.