Performance

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey guys,

my game is nearly finished, it has a size of 12.6mb. I hope that this is okay for a game?

Now how do I improve my game performance, make it loading scenes faster and when a level is loaded, the first move or the first 0.2 sec it sticks a little bit and then goes on ....

Thanks for help

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Or is this normal when using the GameSalad Viewer? :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Is it normal that there is a lag when testing the GameSalad Viewer on the iPhone?
    Concerning an Game..
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    merged. youve been told already to stop making duplicate threads
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Sorry John... I know ..it won't appear again
  • FranzKellerFranzKeller Member Posts: 517
    Scenes just don't load instantaneously, unfortunately, even on the finished apps

    And I wish we could turn off that "spinning wheel" thing that reminds people that they are waiting.
  • 3xL3xL Member Posts: 676
    i just recently experienced this...

    -for some reason, "music" audio loads faster than "sound" audio
    -the viewer timing is sometimes faster or slower than the device's timing (by timing i mean process timing)
    -ImageOptim (which is free) is a GREAT tool for shrinking image file size. I was able to reduce 1mb, 4mb even 6mb one time with this tool.

    those are my 2 cents. can't wait too see your game in actions good luck with sales!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    OK I am gonna try this :))

    @3xL: I hope it is finished this week and ready for the app store :) pictures coming soon....
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I hope this sort of lag, won't appear on the final version then in appstore. Would be really uncool for me and the players ://
  • natzuurnatzuur Member Posts: 304
    Chances are it will still run slowly if the issues are showing up when testing on your device. What kind of FPS are you getting, and how much memory is being used during testing? Generally want to keep it above 30 fps. If you notice it dropping below that, try and figure out when it starts to slow down, that might give you a hint to whats causing the performance issues.

    Also http://gamesalad.com/wiki/optimizing_for_iphone

    Some other common issues i've noticed are particles with a large number of particles being spawned at once or changing the size to something massive for particles.

    Not recycling, or moving actors off screen when they are done being used. (destroy does not fully remove the actor)

    Also 12mb is fairly small for a game, depending on the length of the game and what the game is.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay :)

    I got around 50-60 fps. And my memory usage is around 70mb, then 10 from 15 levels are played.

    It is not the loading of the scenes, that's "okay" ...but when jumping with my actor, there is a little delay which is really uncool ://

    thx
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Alex0407 said:
    Okay :)

    I got around 50-60 fps. And my memory usage is around 70mb, then 10 from 15 levels are played.

    It is not the loading of the scenes, that's "okay" ...but when jumping with my actor, there is a little delay which is really uncool ://

    thx

    what devices are you aiming for? because 70mb of memory will crash any device under 3gs
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Actually I thought of all iPhones...

    I have 35mb image memory, thats too much or? How do I get this down :// ?

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey in my main menu and season select I have an total memory usage of 23mb....when changing to level 1 it increases to 57 ://

    But there is only a few actors with not many rules in it...
  • natzuurnatzuur Member Posts: 304
    That seems odd, are you using spawn actor as soon as the scene loads or particles that spawn a very large number of particles when the scene loads? How many actors are on screen or how many are being spawned.

    You might want to go through your game file (make a back up) and start removing things one by one to see if one thing is really killing the memory. Start with actors, then if you notice one actor seems to be causing it, go in and start removing rules one by one. Basically process of elimination.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Ok I have the following actors in my scene:

    Two buttons for left and right movement
    one button for jump
    two buttons for menu and restart
    5 actors with alpha first set 0 and then set to 1
    3 Actors also set alpha 0 to 1
    And music and sounds
    My main character
    Thats all ...

    I removed some actors that can be removed but still 52mb ://
    How much mb should one level have?

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay I removed my main actor completely and now usage is at 30mb. Then I searched for the reason in my actor, I removed rule by rule, nothing went better. Then there was no rule in my actor left, still 56mb.

    Then I tried to remove him completely from the scene and again 30mb. I thought maybe a rule is wrong or... so I wrote all rules again... again 56mb..

    I really don't know what's the problem :/ So I wanted to ask if somebody can check my level 1 ?

    thx Alex
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Ok little update,

    I am wrecking my a** off :D I was lying in bed and thought get up and
    work on the game :D

    And what I did was resizing the images, now in Level 1 I have an total memory usage of
    34,6mb :D ....but I think I still get oer 40 when playing all levels :/

    I also switched of the physic's moveable on all actors ....

    thx..now it's time to go to bed, school starts in a few hours
  • 3xL3xL Member Posts: 676
    yea i played a game that has around 60mb ram on my ipod 3rd gen and no crashes, however when that ram shot up to 90mb, i got a crash. even on my iphone 4.
  • natzuurnatzuur Member Posts: 304
    Nice, I think 40mb is pretty good, I think that will be ok on 3rd gen +
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But I think it is running up to 50mb or so?

    Yeah from 56 to 34mb :))
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    What can I also do now?!

    Or is this okay?
    Something really annoying is that the Jump movements lag
    a little bit. I used change velocity y for that? Some improvements or?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Again somethign new, my levels are never over 50mb when testing each one. But when
    I play my app, and I have to reset my level because I failed, memory usage raises and raises ://

    For reset button I said reset scene and change attributes zero....

    That's the only problem now...please can someone help me :)
  • svnsvn Member Posts: 445
    I think there is some bug in GameSalad that causes memory usage to increase. I cannot remember the specifics, though, so check around to see if anyone else has this problem.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I switched off moveable of all not moving objects, image sizes are all checked, sounds are also okay...

    just increases when I reset the level to play again :// I looked around svn, did not find something about that ...
  • natzuurnatzuur Member Posts: 304
    Same thing happens to me, I assume it's a bug. Increase like 3-4 every refresh no matter how much or how little preloading art etc.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    What to do now?

    I really don't know ://
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Game Engine increases more and more ....that's the problem...

    I reseted my level 30 times and game engine was at 50mb ://

    Please help me, game is then finished :)))
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey I tried something and this and that and now when pressing
    refresh, total usage increases only 0,1mb. I think that's okay.But when I come to the levles with plattforms moving up and down, ( when actor collides with, change attribute to 1, destroy actor, level failed), total usage increases up to 0.8mb eacht time, that's pretty uncool...

    Does somebody know what to do?

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    ( EDIT) when restarting the scene....it increases...
Sign In or Register to comment.