Game Runs Slow

0 favourites
  • 8 posts
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hi guys,

    I am developing a mobile game and just developed 11 stages out of 40. When I test it on my mobile, I noticed that it's running slow at first time and later runs normal when I go to next stage. Also my mobile is getting hot, while I'm playing it. I think it's because of extreme usage of ram.

    I want the game to run smoothly. Please help.

  • We need more information, buddy:

    What phone

    What behaviors are you using in your project

    How many objects are you using and when

    What kinds of events and actions are you running on the stage that runs slow

    Are you testing over a web browser on your phone, or exporting to Crosswalk, CocoonJS

    Using the debug mode, do you notice anything strange in CPU usage during that stage or any other strange quirks

  • Right...

    Phone: Htc desire 816

    Behaviors: sine and fade (for now).

    Objects: 47

    Events: Im using total 219 events for displaying score and time, storing score and time, using buttons like reload, menu, etc, determing gameover, moving an object on win, destroying an object on touching it.

    Test: Im exporting to crosswalk.

    CPU Usage: It's reaching nearly 60%. Not only on a particular stage but on all the stages.

  • On debug mode (inspect), im getting CPU usage of approx. 50 to 60% and game is running slow but when i did the same in watch and profile mode im getting CPU usage of not more than 10%.

  • hi,

    1- to mesure cpu usage for ios (use safari to preview because it gives you approximatly the same on device)

    2- to mesure cpu usage for android better use chrome for preview

    3-now you have to read 3 or 4 tutorial of ashley and other members on how to save your memory usage and optimize the game (cpu usage)

    4-avoid every tick actions

    5-beware of collisions check (desable them and enable them only when it is necessaire)

    6-beware of behaviors (desable them and enable them only when it is necessaire) to

    7-for me if i get cpu usage more than 40% its much .... your game will certainly run slow

    8-try to enable Webgl if you want to use webgl

    9-set pixel rounding to on and sampling to point in project propriety this will give you huge performance and remember to use render cell to on if you have large layout with collisions checks

    10-we need to see your capx for more details and determine what is going wrong

    good luck

  • Yes, im using chrome for testing on desktop.

    Im using every tick action for only object, which will be activated when the user wins.

    Collision checks/sec is running around 300 (~8/tick), sometimes even it reachs to 500. How to disable and enable them?

    I need behaviours running from the begining to the ending.

    I think by defaulf webgl is enable but I don't know its purpose

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After disabling unnecessary collision, my game CPU usage is reduced from 50% to 30%.

    Now, could you tell me is there any other way to further reduce the CPU usage?

  • I noticed that my game is running at GPU memory 10.5 MB and 30 to 40 FPS. Could this be another reason of getting more CPU Usage? If Yes, how to improve the performance?

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