How do I fix the lagging issue in game?

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

    I am making the side shooter game I used lossy png and jpg, but the game has slow down after some time. All object are moving very slow. I am using "dt*" when moving the objects as per the Ashley's tutorial.

    Anyone knows what should I do?

    Thanks in advance.

  • Have you tried looking at the debug mode preview? There's a section you can click called Profile, which gives cpu utilization stats, divided by your event sheets.

    It should be able to give you an idea of what event sheets are causing the brunt of increased cpu utilization (if any) and help you narrow it down. An example is having an event poll C2 every tick, that's somewhat cpu intensive at times.

  • Without a CAPX it is hard to say what causes the lag but open loops and On Every Ticks are usually the culprit.

    Sound effects not properly handled can also cause lag.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • the game has slow down after some time.

    I'm guessing you've got too many objects, either from creating too many or more likely not destroying them once they've gone past the player.

    Check the object count in debug mode.

  • Thanks a lot for the reply, Guys ! I will try your suggestions.

  • Solved the issue guys, many objects were not destroyed that why the game was slowdown. Thanks a lot again..

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