About CPU usage of includes

0 favourites
  • 1 posts
  • Hi everyone,

    I'm currently optimizing my desktop game for mobile, so I'm trying to spare every possible bit of CPU usage I can. I noticed something weird: in the debugger, under the profile tab, when I add an include with just a function in it in my main code (under a group, which is possible in C2 as opposite to C3), the CPU usage of that group is supposed to be around 1.5% on a total of roughly 30% used by my game.

    By copying the function into the main event sheet at the place where the include was, and deleting the include, the CPU usage of that group gets down to 0.3%!

    Is this really happening or is it due to the "profile" tab of the debugger not managing this correctly?

    I don't see why includes could be that greedy on CPU usage...


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)