why My app have a Latency?

venon_itvenon_it Member, PRO Posts: 594
edited November 2012 in Working with GS (Mac)
Hi, if you see the video , you see when i touch the botton the app responded with a latency :



For botton i use a integeer inside every bottom, when touch the bottom the integeer is 1 , when retouch the inteeger is 0

Thanks to help Me

Comments

  • venon_itvenon_it Member, PRO Posts: 594
    Help Me please
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    There is no sound in the video? Or do you mean there is latency with your game logic?

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    If it's the video with the music maker, I can't hear anything. There's no sound in the video. I'm guessing that the sound doesn't play immediately after touching the button?

    Do you have the Play Sound behavior firing off immediately after the attribute change, and is that set of rules at the top of the list? And what original format are your sound files, and do you know their settings for bitrate and mhz?
  • MobileRocketGamesMobileRocketGames Member Posts: 128
    edited November 2012
    I'm surprised I have to say this to someone with more posts than me:

    Asking "why my game have latency" ("why is there lag when i press buttons?") is like asking "Why does my car run poorly?".

    You will just have to pop the hood and take a look at it.
    Most likely you are using some really poor behaviour systems (timers, etc) if you are lagging an iPhone 4 just playing sound effects.
    Actually I can almost guarantee you put your sound effects on a (every X seconds) timer.

    What you need to do is create your own timers. You can use this guide:
    http://forums.gamesalad.com/discussion/44707/timers-are-for-chumps-gs-optimization-tips/p1

    Also, you need to change your link from mobile to web for it to work properly (just take out the "m" at the beginning)
    http://youtube.com/#/watch?v=J2JGPhQx3CI
  • venon_itvenon_it Member, PRO Posts: 594
    This is video :
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Hmm...I'm not really seeing the latency going on. It seems to be responding pretty quickly. Looks like a couple of miss touches happened. Am i missing something?

    And have you made an AdHoc of this yet and tested it?
  • venon_itvenon_it Member, PRO Posts: 594
    when you touch a button becomes active after a few seconds
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    If that only happens the first time a sound is triggered, then it's because the sound is still loading in to RAM. So you'd want to 'preload it' by playing all sounds silently at the start of the scene.
  • venon_itvenon_it Member, PRO Posts: 594
    the problem is the sound and the image they load after a few seconds! Now we create a demo Gamesald, you can try?
  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    Yeah sure post a demo and I'm sure one of us will be able to see if there is any problem.

    But that the images and sounds have to load in first sounds normal? But anyway, post your demo and we can have a look.
  • venon_itvenon_it Member, PRO Posts: 594
    Ehyyy!! Last 2h To Download iPad App Discount : SequencerPRO 2.99$ to $0.89: https://itunes.apple.com/it/app/sequencer-pro/id560249143?mt=8
Sign In or Register to comment.