How to fix crash due to 100% CPU usage?

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 :)
  • After some testing I realized that when I go from the menu to the main scene the CPU usage goes to 100% and then stabilizes to 25. According to the debug menu it comes from "engine and other". How can I solve this problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No one is going to be able to help with this unless you post your project file.

  • In fact the game is already over and has more than 250 events so it would be too much to ask (moreover some of the notes are written in French).

    I just hope to find some lead based on what people knew about that kind of mistake.

  • Its likely not a mistake (bug). It sounds like your main scene requires 100% CPU usage on load based on what you are asking it to do. You can use the CPU profiler tab in the debugger to narrow down where the usage is coming from. You can also disable certain events that happen at start of layout until you see your usage drop, so you can find what the problem events may be.

  • I finally found the problem! Apparently it is better to load all the sprites/animation at start (on the first layout) than during the transition between two layouts because it have chance to overload the CPU and crash...

    Anyway, thank for your help, it got me on the right track :)

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