[SOLVED]Performance issues, freezing, crashing

0 favourites
  • 3 posts
From the Asset Store
Minimalist Crash Balls is a game where the goal is to hit the ball on the portal, with 20 different levels :)
  • Hi there,

    I've created my first real html5 game using C2 and you can see it here <img src="smileys/smiley1.gif" border="0" align="middle">

    Now, the problem is that the game for some reason seems to have quite a quirky problem. To see what I mean please let it stay idle on level selection screen or on any level (you can mute the audio). Then go back to main menu. Once you do that, you'll notice that going back to main menu freezes the game for up to few seconds.

    I would much appreciate any hints on how to locate the problem (only happens when going from level selection to menu). I'm not sure whether it's a bug or not, could as well be something I'm doing wrong. Or a hint on how to debug the thing?

    Edit: Forgot to mention: if left for longer, the script crashes its browser tab even before I go back to menu.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Was pretty responsive in Chrome. Very hard to comment without seeing your .capx. If you're doing something like creating objects every tick (whether intentionally or by accident), that could cause a long delay while the engine destroys thousands of objects at the end of the layout. Could be anything else though.

  • Updated as solved, found the cause! Of course it was my silly mistake, namely forgetting to put my loop that creates volume controls inside a "on start of layout", which in turn made it repeat infinitely. Things were going rather smoothly until user went to main menu, which was set to destroy those "on start of layout", thus freezing.

    Tons of thanks for the tip, cheers!

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