Welcome, Guest

Author Topic: Questions Regarding Multicore support / Multithreading  (Read 3327 times)

Prometech

  • *****
  • Posts: 119
  • Official Photographer of the Universe at large
Questions Regarding Multicore support / Multithreading
« on: April 04, 2015, 11:40:12 AM »
I recently upgraded from a 4 core to a 6 core CPU, and was wondering if US2 uses all 6 or less than that.
Just curious. Also, are the physics and Impacts on a seperate thread or are is the application single threaded?

C7

  • Development Team
  • *****
  • Posts: 544
Re: Questions Regarding Multicore support / Multithreading
« Reply #1 on: April 04, 2015, 12:01:08 PM »
We do use a good bit of threading in Universe Sandbox ². Unity engine is itself threaded, as is our physics engine, and parts of the code where we have to go through large lists of objects. The core utilization you'll see depends on a lot of things, like drivers, operating system and how the cpu handles thread dispatch internally. Theoretically it should use all six cores to some degree or another.

It may not seem like it at times, and that's due to the fact that we've got a lot of cases that are dependent on order of operations, in those cases we need to sync or wait on threads to finish to continue. That's one of the reasons you'll never see things used 100% on all cores. This is actually what we're focusing on fixing and minimizing in the current update. It's a pretty big job though, so it's taking some time to complete. Once it's completed we should get a lot better performance overall.


Prometech

  • *****
  • Posts: 119
  • Official Photographer of the Universe at large
Re: Questions Regarding Multicore support / Multithreading
« Reply #2 on: April 04, 2015, 01:41:24 PM »
Thanks for clarifying :)