Surprising framerates

ckck Member Posts: 224
edited November -1 in Working with GS (Mac)
I have an iPad project that I thought was pretty well optimized. Just loaded it up in the 8.8 iPad viewer, and my framerates are low low low.

At first they were 9 fps. I went in and deleted some background images that were moving.

Now the framerate's up to 16-20.

The file has:

26 variables
92 actors
Project size is 1.5 MB.

Rather stuck. It's an imposition, but does anyone care to have a look?

Comments

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Hmm my game is bigger and not even done yet...I'm getting 60fps. Is there 92 actors on screen at once?
  • ckck Member Posts: 224
    No. Doing a quick count (from the scene in question), I have 37 actors on the stage, but only three are moving. Twelve are waiting for collisions (and each spawns three actors for about two seconds when there's a collision).

    http://www.kriel.tv/framerateScreenShot.jpg

    To explain:

    1) The gargoyles are waiting for collision from the bullet.

    2) On collision, they play a sound, add to score, spawn the flies, and spawn a quick score graphic

    3) The bird rotates to where you click on the screen

    4) There's an actor waiting offstage that acts as a menu

    5) none of the images are over about 16k, except the background gradient (which won't work in the end, I know - working on replacing that)
  • AfterBurnettAfterBurnett Member Posts: 3,474
    Wow, that looks cool! I'd go with custom fonts, though ;)
  • ckck Member Posts: 224
    Thanks Poly. It has custom fonts. Those white numbers are just counters to help me keep track of variables.
  • JCFordJCFord Member Posts: 785
    Sounds like there is an issue somewhere as you should be getting a much larger frame rate than that.
    Just delete a few things out at a time and see what's causing the slow down.
  • AppChogieAppChogie Member Posts: 503
    I'm getting 60 fps on Fred
  • ckck Member Posts: 224
    OK, this is really odd.

    The original framerate was 20fps.

    I deleted the background gradient, which was a png. The framerate went up to 30fps.

    I then replaced it with a jpg. The framerate went down to 16fps.

    The background in both cases was 1024x768, 72 dpi. Can it really be that expensive?
  • ckck Member Posts: 224
    Apologies for the bump
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    try getting rid of your custom fonts and see what happens. I remember reading how that could cause huge slowdowns.
Sign In or Register to comment.