How reliable is the CPU use debugging tool (and another weird issue)?

0 favourites
  • 2 posts
From the Asset Store
Make your craft game come to life with this sounds :D
  • First, the bigger question: How reliable is the CPU use stat in debugging mode? It shows me I'm running my relatively ligh game at nearly 100%, but that can't be true since my older but still quite powerful CPU barely reaches 15% use when measured with outside tools. Should I trust the debugging tool?

    Second, my game runs at close to my max fps on my 144hz monitor the very first time I run a preview in a session, but then it drops down to 60 frames when I open the preview layout again. Have you experienced anything like that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd say it's reliable, but I believe the debugger costs a bit of performance itself (though not 100% sure, or, if it does cost performance, is that reflected in the cpu %?).

    It may be more cleaner to add a text/SpriteFont and set text to cpuutilisation, then preview without debugger and see what you get.

    For the FPS, I've found Chrome is always wayy more performant, whilst Firefox lags in same exact game.

    For the FPS dropping randomly, I've only ever seen that on mobile devices. My mobile is a 120hz display, and even when I force it to "gaming mode", it drops to 60fps when it is overwhelmed, then few seconds pass, then it jumps back up to 120fps. Not sure if any desktop computers also do this, but I wouldn't have thought so.

    Perhaps the whole "nearly 100% but on older device it barely reaches 15%" thing, my guess is, is it using webgl2, or is it using your gpu on the device that reaches 100%? The debugger will tell you if webgl2 is being used, and also you could create a text object that outputs gpuutilisation - if you get a value, it's using your gpu. If you get "NaN", then perhaps gpu stuff is being offloaded onto the cpu, causing 100% cpu usage.

    Just some thoughts, hope it points you in the right direction!

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