How many CPU cores will HoI4 use?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Showing developer posts only. Show all posts in this thread.

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
I doubt that.
I mean, I imagine there is a number where it stops taking advantage of new cores.

No, hoi3 uses as many as there is, but for each one added there is a smaller speed penalty because of overhead so it flattens out after 4 or so.
 
  • 1
Reactions:

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory
So if I understand it correctly it is beneficial to have up to 4 cores, after that there is no added benefit.

There is, it just gets less and less. So 2nd core gives 50% speed boost, next one you might be down to 20% extra, then 10% extra etc because the overhead increases and there is only so much stuff that can actually run in parallel.

I meant in theory.
I mean, surely if you just keep adding cores forever things would start to go wonky.
Or could HOI4 use all the thousands of cores on a magical alien supercomputer?

Well, the most you could split it up would be one core per country AI. So something like 100 cores. But that might not necessarily be faster than say 16 cores. At some point the overhead of managing the cores takes more time than adding an extra core to do processing.

Generally we make code that runs as fast as it needs to run on the target platform. I don't see why any gamer should care unless they are programmers and interested in the technology.

And lastly, you have to make the distinction between real cores and hyperthreading. Hyperthreading may seem to give you more cores, but it really doesn't. It uses a trick.

yeah, hyperthreading is generally shit. Our threading code doesnt usually use that much it because its not really faster
 
  • 1
Reactions:

podcat

Game Director
Paradox Staff
12 Badges
Jul 23, 2007
12.793
38.305
  • Europa Universalis IV
  • Hearts of Iron III
  • Semper Fi
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Pre-order
  • Hearts of Iron II: Beta
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Paradox Order
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Together for Victory