What causes Late Game Lag?

What causes Late Game Lag?

  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

FLUX2226

Second Lieutenant
13 Badges
Nov 15, 2019
193
185
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
What are the biggest factors that cause the game to slow down after a few years? My PC isn't the best and HoI4 becomes almost unplayable from 1941 onwards (a single day takes over 10 seconds on max speed), so I've been thinking about creating a mod that simplifies/thins out certain aspects of the game to considerably improve performance.

What are the biggest late game lag reasons? I already discovered from testing that LaR's occupation system noticeably eats up game performance once more and more territory is getting occupied during the war; division spam by the AI is often mentioned as well. What else?
 

TalyonUngol

Lt. General
On Probation
12 Badges
Jul 7, 2019
1.355
1.274
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Megacorp
I think a combination of factories, division counts and animations between aircraft and ships. So lots of everything.
 
  • 1
Reactions:

walt526

Major
11 Badges
Dec 28, 2014
517
350
  • Darkest Hour
  • Hearts of Iron III
  • Europa Universalis IV
  • Cities: Skylines
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
I use a mod, called "AI Division Limiter" that limits the number of low-quality divisions that irrelevant minors spam (specifically, it caps the number of divisions they can field as a function of total factories, subject to some other conditions such as proximity to conflict). It has a noticeable impact on improving performance. The downside is that you wouldn't want to use this if you were going for a world conquest, since you'd want those irrelevant minors in South America to have a fighting chance. LOL.
 
  • 3Like
  • 2
Reactions:

Soranya

The Eyes!
110 Badges
Jan 10, 2012
967
934
  • Warlock 2: The Exiled
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Semper Fi
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Tyranny - Tales from the Tiers
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Rome Gold
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis III
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis 4: Emperor
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
AI moving stuff around and reevaluating would be my guess. (Short: Division Count gets high game speed gets slow)
 
  • 1
Reactions:

SeekTruthFromFx

Lt. General
49 Badges
Sep 17, 2013
1.250
201
  • For the Motherland
  • Victoria 2: A House Divided
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Europa Universalis IV
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Rome: Vae Victis
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Mare Nostrum
What slows things down is ships, divisions, and air wings in combat, because of the large number of AI calculations as it moves units around (including players' units, because of the battle planner and the way that air and naval warfare work). Mods that just limit the number of divisions in conflict-free zones (e.g. South America in a typical game) don't help much, because those divisions just sit there with very few calculations being performed if they are exercising (and I think PDX has stopped them doing that if it's pointless). That's why things become slower in 1941 in a typical historical game, as the Eastern Front dramatically increases the number of units in combat.
 
  • 2
  • 1
Reactions:

Ruck

Captain
5 Badges
Nov 28, 2005
475
968
  • Crusader Kings II
  • Europa Universalis IV
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Imperator: Rome
There must be more to this, as in my last few games where I annexed pretty much every major country after 1945 (pretty much all of North America, Europe, Asia and Africa), the performance was still incredible much slower than pre 1942/1943/1944 and there wasn´t even a war ongoing anymore. I was indeed quite suprised by that, because there was no one left with many divisions, planes or ships besides me. Something is there in the lategame which eats performance like hell and its not only divisions, planes or ships (Im not using any mods).

Anyway, I did get huge boost in performance after I upgraded to an I5 8600K 2 years ago (from an very old I7), its like 5x times faster now, before that, everything after 1943 was unplayable. Although I think that some performance improvements were made in the last years by the devs as well.
 

FLUX2226

Second Lieutenant
13 Badges
Nov 15, 2019
193
185
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
There must be more to this, as in my last few games where I annexed pretty much every major country after 1945 (pretty much all of North America, Europe, Asia and Africa), the performance was still incredible much slower than pre 1942/1943/1944 and there wasn´t even a war ongoing anymore. I was indeed quite suprised by that, because there was no one left with many divisions, planes or ships besides me. Something is there in the lategame which eats performance like hell and its not only divisions, planes or ships (Im not using any mods).
That was likely the occupation system. Each day every indiviual occupied province has to calculate levels for resistance and compliance, as well as resistance activity and effects.
 
  • 3
Reactions:

Th3master

Rear Admiral
53 Badges
Aug 10, 2014
162
56
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Semper Fi
  • March of the Eagles
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Cities: Skylines - Parklife Pre-Order
  • Crusader Kings III
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Steel Division: Normand 44 Sign-up
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Imperator: Rome
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: La Resistance
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
That was likely the occupation system. Each day every indiviual occupied province has to calculate levels for resistance and compliance, as well as resistance activity and effects.
This system is still way better than the cav fest it was before LaR


I think a combination of factories, division counts and animations between aircraft and ships. So lots of everything.
big issue is that minors will make a bunch of small divisions that are garbage instead of focusing on quality like they should. Hungary will have 50 divisions by 42 and they will all be either cavalry or crappy inf divisions. It makes sense that they should make a bunch of divs so that minors can’t roll them but if they’re in a faction there’s no reason for them to spam like this.
 

Supremeleaderpies

Second Lieutenant
42 Badges
Jan 24, 2019
107
185
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis IV
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Stellaris: Megacorp
  • Crusader Kings II: The Old Gods
  • Darkest Hour
  • Magicka
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • Crusader Kings II
I really think its aircraft. more than anything else

I have a achievement run going right now that is super late game 1953. Germany has 85k planes and every airbase in their territory is filled to the brim.

Edit: LMAO, I really shouldn't just read the title and respond.
in that game for me its quite a bit slower than the normal speed of the game, But i have a very beefy rig.
 
  • 2
Reactions:

balmung60

Field Marshal
97 Badges
Jan 20, 2013
6.223
1.921
  • Cities: Skylines Deluxe Edition
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Reapers Due
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Jade Dragon
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Call to arms event
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV Sign-up
  • Tyranny: Archon Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Warlock 2: The Exiled
  • Victoria 2
  • Teleglitch: Die More Edition
Historically, the a major culprit has been lots of countries with more than one army worth of divisions. Very broadly, 10 countries with 20 divisions each hits performance much worse than one country with 200 divisions, and every two-bit minor power in will generally crap out divisions until their manpower is tapped out.
 

tract

Private
Nov 20, 2020
22
35
I know this is not strictly what was asked, but I have a pretty potato computer (laptop from 2013), and if I select multiple (4-5) air wings at the same time, the graphics start lagging visibly, only giving maybe around 5 fps, even when the game is paused.

I suspect the range circles, particularly overlapping ones, have something to do with it. Maybe somebody should take a look at it?
 
  • 2
Reactions:

FLUX2226

Second Lieutenant
13 Badges
Nov 15, 2019
193
185
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
This system is still way better than the cav fest it was before LaR
The disadvantage of the new system is that it doesn't disappear after the war. If Germany capitulates the Soviets with a peace conference, it will still slow down the game for years to come.

I'd actually have to make a test run about old-vs-new at some point. Because to me it feels like the new occupation system made the game performance worse (I don't remember having such late game issues when I started with HoI4, which was before MtG), but I could be wrong.
 

FLUX2226

Second Lieutenant
13 Badges
Nov 15, 2019
193
185
  • Crusader Kings II
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
So an example mod (assuming all of this can be modded) to improve performance could look like this:
>AI can only deploy 40w divisions to limit division spam
>Planes are more expensive but also more effective to limit air force size (starting air forces will be adjusted)
>Occupation stats and resistance activity are calculated once per week, not every day (stats and effects will be adjusted); resistance is completely disabled if you own the territory instead of just occupying it (compliance will still exist)

I'd love to simplify combat as well but that would probably have a hefty effect on balancing unless I get it just right.
 

lekim

Hoi4
7 Badges
Jan 20, 2009
277
124
  • Arsenal of Democracy
  • Hearts of Iron III
  • Semper Fi
  • Victoria 2
  • 500k Club
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
Divisions and supply chain (try to forbid a uzone for see transpor tin the late game) the game literally freezese.