False CPU usage reading?

0 favourites
  • 9 posts
From the Asset Store
Math questions appear quickly on the page, so you must respond quickly to get points!
  • Why is my task manager CPU usage reading not matching up with the Construct 2 debugger CPU usage reading?

    dropbox.com/s/bktn80fhb4xhm24/cpureading.png

  • In your case I'm going to bet the difference is Multi core. I don't believe JS runs on multiple cores at this time. So your game can use 100%, but if you have 4 cores then it's only really using 25% of your overall system performance.

    I could be wrong on the JS not using multicore though.

  • Shouldn't it be showing on the first core's graph though? I've had games before that end up using only one core and push it to its peak on the graph and all my cores were at 1% or less until I started running that game in C2.

  • i dont know what browser you use but you should also test this using a different browser i know for me in a couple versions of chrome the debugger cpu use lists wrong values

  • I almost always use Node-webkit. Though I've tested it and Chrome gets similar performance while Firefox is about half as able to run at full speed.

  • From the manual entry on the debugger:

    "The estimated CPU time (e.g. 20% CPU): an estimate of how much CPU time is being spent in the logic of the game. This is not always accurate, especially since it only takes in to account time spent on the main javascript thread, and should only be considered a ballpark figure. The profiler can break this down in to how much time is being spent in each area of the game, and is described in more detail later on in this guide. This value corresponds to the CPUUtilisation system expression."

    Emphasis mine.

    In addition, although it's likely to provide a more accurate picture of overall system resource usage the Windows task manager also doesn't provide entirely accurate results -- it's a simple tool intended to provide a picture of computer performance suitable for general end-users -- not a precise tool intended for developer usage.

  • You should at least be using Resource Monitor..

    Procmon's profiling events will give you better idea tho!

    Would anyone benefit from a performance testing tutorial?!

  • On a quad core system Windows will report 25% CPU usage when one of those four cores is running at 100% and the other four cores are idle. Even then the graphs of each core's activity is not always accurate in Windows either, seeming to show activity shared across cores for some reason. In this case the 97% estimated CPU usage in the C2 debugger means "basically all your CPU time is used up", and that measurement is based on a single thread (and therefore one CPU core).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Resource monitor says the same thing as taskman. I guess I can only hope for the system to eventually work on multiple cores in the future... or get a better computer. <img src="smileys/smiley17.gif" border="0" align="middle" />

    Thanks guys for clearing up the issue.

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