[SOLVED] Super Lag Game in Android, How to Fix?

0 favourites
  • 10 posts
From the Asset Store
Super Ninja Adventure is a platform game where the goal is to reach the boss and fight with him super fun :)
  • This is a 3 match game I got from some tutorial on the net

    Scale it up so it fit 16:9 on portrait and convert to APK using cocoon Js canvas mode, the result? Lags like hell!

    How to fix this thing up?

    Convert the movement to dt?

    Just figured out the cpu usage hit 70-80%

  • Try using a Sprite font instead of text. It works better with android.

  • i have the same problem

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try using a Sprite font instead of text. It works better with android.

    Changed to that one, still, it lags , only 15 fps

  • i have the same problem

    lol, welcome on board

  • I think I found the culprit

    The main problem is the "match finder function" which is called whenever another block is destroyed and fall, it's called to recheck the match again

    Look at the highlighted part, the else event to recall the findmatch function

    And this is the function

    I'm seriously desperate to make it smoother

    ________________________________________________________

    I've ported it to cocoonjs without the else -> call find match function and it performs noticeably far far smoother

    Now, if only someone can help to optimize the code

  • Problem Solved!

  • Any info you can provide as to how you solved would be a huge help for the community

  • Oops nevermind, I noticed you had more info at the bottom, i mistook it for your signature haha. Thanks!

  • Oops nevermind, I noticed you had more info at the bottom, i mistook it for your signature haha. Thanks!

    lol, it's exactly looks like a siggy

    I'm gonna post the capx, it's not finished yet but it runs smoothly on android now

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)