Construct 2 and cores

0 favourites
  • 5 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • When you run a C2 game in Chrome, I know that only a single processor core is utilized for the game. However, I was just wondering that if Ouya gets supported by Cocoonjs, and I port it to the Ouya, will it only take advantage of one of the four cores of the Ouya's Tegra 3?

    So in other words, are C2 games always ran on a single processor core or are there exceptions to this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As far as I understand it, C2 games will run all game logic on one core except for pathfinding, which uses a web worker to run on a second core if it's available, but it will not utilize any more cores than that.

  • The rendering will utilise all available GPU cores. Most logic processing happens on a single CPU core, except for pathfinding as Arima notes, but depending on the browser engine it may be able to use additional CPU cores for other purposes. For example IIRC Chrome forwards all WebGL calls to another thread, so they can happen on another core. Other processes like audio and image decoding are likely to use other cores. However the details will probably vary depending on the particular engine you're using (including whether CocoonJS or browser-based). If you wanted to know more about CocoonJS specifically, it would be best to ask Ludei.

  • Ashley

    Does Collision checking also use only a single core?

    Would there be any improvement in speed if it used all available ones?

  • Yes, collision checking is single threaded. Collisions are checked in the actual 'On collision' or 'Is overlapping' events themselves, and since the results are needed immediately, there's not much to gain by offloading to another core - the rest of the events could not continue until the results were known.

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