Improved Performance (No Migration)

If you liked this item, please rate it up on Steam Workshop page.

Author: Vezachs

Last revision: 4 Nov, 2022 at 22:32 UTC

File size: 1.23 MB

On Steam Workshop

Description:

Give me your tired, your poor,
Your huddled masses yearning to breathe free,
The wretched refuse of your teeming shore.
Send these, the homeless, tempest-tost to me,
I lift my lamp beside the golden door!

– Emma Lazarus

Improved Performance!

This mod aims at improving performance by disabling migration, which will result in significant reduction in late-game lag.
Note that the performance improvement only affects new save files!

If you load an old save file where migration has already taken place, this mod won’t help much.

Ideally, you’d want (very small) minority pops to assimilate to the majority culture, but that is currently not possible due to the way pops are coded. Until Paradox fixes this issue, this is a viable alternative to be able to play late-game.

In practice, effects on gameplay will be small; I have noticed no noticable differences in my playthrough.

Compatibility

This mod should be compatible with any other mod. I recommend putting this mod last in the mod list, to be sure it works.

Code

All that was changed are 2 parameters in ’00_defines.txt’:

NPops = {
MIGRATION_MIN_POP_AMOUNT = 0 # No less than this amount of a pop can migrate each week (if any migration at all should happen)
MIGRATION_MAX_POP_AMOUNT = 0 # No more than this amount of a pop can migrate each week
}

Enjoy the mod!