Crusader Kings III

Crusader Kings III

Population Control (Reduce late-game lag)
588 Comments
I started this in the late medieval age. The result was... Interesting.

Time came to a standstill and I wondered why the days were not progressing, but to my surprise, after about 15 seconds on speed 5 it changed to the next day :D

At first I was confused but then I realized, the mod must be deleting THOUSANDS of characters.

Eventually after about 15 minutes, the game started to speed up again and I was back to normal speed. The lag decreased and my framerate improved.

This is a very good mod, I like it very much :)
CreamKaKao  [author] 5 Jul @ 10:58am 
Population control does **not** function while it's in the "stopped" state — it only works when it's set to "started."
Also, once it's started, population control will **automatically** activate only when the population exceeds 22,500.
So in most cases, you can just set it to "start" at the beginning and forget about it.
PiGu 5 Jul @ 8:06am 
Hi!
One question: am I correct in assuming the population control is always active (if the population reaches 22,500) and the decision to start/stop the population control is just a failsafe?
Or do I have to activate the decision at the start of each game?
Thanks in advance and great mod!
Litz 18 Jun @ 1:03am 
It works... Doesn't crash my game at all
Fizzet 21 May @ 4:02am 
i have also experienced large amounts of crashing
Butyr 21 May @ 2:22am 
crashes the game
Is this what I think it is? Genocide Mod?
Garlic 14 May @ 6:25am 
Wish I could have second or third filter and tweak the value to the limit. Like multiplying it if they're a commoner, have low stats, reduced fertility due to age, no family ties, etc.
Syron 14 May @ 4:39am 
Any chance this is going to see an update for the new update?
MM 11 May @ 3:22am 
it constantly crashes when I launc it with khans of the steppe anyone know why?
The Greatest Dr McJenkins 8 May @ 1:48pm 
I've noticed that when the population is well over 22,500 (like tens of thousands above), the ability to stop a death cycle via the decision doesn't work. Starting a cycle will have it kill a bunch of character until it decides to stop, usually after a couple IRL hours or in game months. This is very frustrating due to how much the death cycles slow the game down, so if I want to reduce the population while I run the game in the background, by the time I'm ready to actively play again the game is still slow due the death cycle. The stop population control essentially feels like it doesn't do anything.
CreamKaKao  [author] 3 May @ 3:15pm 
It's fixed now.
Dinoicy 3 May @ 10:36am 
@creamKakao
Your link doesn't work btw
CreamKaKao  [author] 2 May @ 8:15pm 
It's okay to use 1.14 on 1.15 version. However, you can also get 1.15 version from the following link and use it.
https://github.com/isony10/pc-git/releases
BamaToon 2 May @ 9:27am 
I rolled back to the previous version so I had to install an older version of this mod. The only one I could find was 1.14 for the 1.15 version of CK3. Is that the correct one? Because I got the warning popup when I went to load my save.
-=Illumifant=- 1 May @ 2:25pm 
Thanks!
诸葛 1 May @ 11:24am 
很棒的创意!
shay 1 May @ 8:25am 
Question: have you checked how it deals with steppe nomads? New DLC produces a lot of new characters on the fly all the time, like shepherds and migrants, so I wonder if your mod doesn't create any problems.
CreamKaKao  [author] 1 May @ 6:19am 
Updated for 1.16
-=Illumifant=- 1 May @ 3:17am 
Does this mod need to be updated for the latest DLC?
cmdedj 29 Apr @ 2:53pm 
@Bluepavels i think you should ask question by english
Bluepavels 28 Apr @ 3:16pm 
@CreamKaKao
2025년과 챕터4도 타노스 모드와 함께 합니다!
1.16(유목 DLC) 호환되나요??
나중에 가볍게 그 런쳐에서 노랗게 뜨는거 해결되게 호환패치 해주시면 감사하겠습니다 ㅎㅎ
CreamKaKao  [author] 21 Apr @ 6:35am 
@lovelyminu74 https://cs2bus.com/workshop/filedetails/discussion/2276469612/4842022878890069796/ 이대로 해보세요

@Paul That is intentional and not an error.
Paul 20 Apr @ 5:50pm 
Seeing the following errors in error.log, using no other mods:

[01:47:53][E][jomini_script_system.cpp:284]: Script system error!
Error: has_trait trigger [ Cannot find dragon in trait database ]
Script location: file: common/on_action/PopulationControl_on_actions.txt line: 258 (Population_Control_death:trigger)

Error: has_trait trigger [ Cannot find dragonrider in trait database ]
Script location: file: common/on_action/PopulationControl_on_actions.txt line: 259

Error: has_trait trigger [ Cannot find dragonless_dragonrider in trait database ]
Script location: file: common/on_action/PopulationControl_on_actions.txt line: 260

Error: has_trait trigger [ Cannot find dragonwidowed in trait database ]
Script location: file: common/on_action/PopulationControl_on_actions.txt line: 261

Error: has_trait trigger [ Cannot find dragonslayer in trait database ]
Script location: file: common/on_action/PopulationControl_on_actions.txt line: 262
lovelyminu74 20 Apr @ 3:18am 
결단에 아무것도 안뜨는데요 ㅠㅠ 이것때문에 다른 모드도 다 지워보고 구독 삭제했다가 다시 구독도 해보고, 이 모드만 활성화해봐도 결단에 안뜨네요 ㅠ
근데 저장된 파일에 보면 빨간느낌표 표시 드면서 모드가 설치되어 있지 않다고 뜨는데요.
혹시 모드 설치된 경로를 따로 지정해줘야하나요?ㅠㅠ
부탁드려요 ㅠㅠ 엔딩 보고 싶은데 후반렉때문에 미치겠어요 ㅠㅠ
sagiluv1 11 Apr @ 3:19am 
@CreamKakao
Is there a specific place in the load order this mod should be? I am currently using the Elf destiny mod in conjunction with Character Body Overhaul and Carnalitas mods. The mod seems to struggle since I have only applied it as of yesterday. I was using the other population control mod, was not satisfied with the results. I decided to give this mod a try. So far, it seems to make the game runs even slower and I am guessing it is trying to do massive calculation.
CreamKaKao  [author] 24 Mar @ 7:16am 
I just tested it and the mod is working fine. And even if you lower the minimum population, the game will still generate characters so the population will not decrease below a certain level. Check the error.log.
G-man 23 Mar @ 2:47pm 
I don't think this mod works after the 1.15 update. I've tried to edit the "Steam\steamapps\workshop\content\1158310\2276469612\common\script_values\PopulationControl_basic_values.txt" text file but it doesn't really do anything. I've tried lowering min and max population to as low as 10000-12500 but it never goes lower than 20000. I've tried increasing "death_chance_base" but I can't see any difference. I've tried this multiple times and waiting for 3 years each time but I get the same result
Yotasss✙ 23 Mar @ 1:28pm 
did nothing, dont understand
sejin0243 22 Mar @ 6:47pm 
아 인구통제시작이거인가요? 생각해보니; 한국분이 만드신건데 당연히 영어로 찾고있었네요..
sejin0243 22 Mar @ 6:36pm 
결단에 떠야하는거죠? 입문자인데 결단에 안떠요..
notHarvog 22 Mar @ 5:29pm 
Does this still work? I've set the limits at 12.5k/15k and increased the chance to 50 but no one is dying, just sitting at 25k worldwide.
CreamKaKao  [author] 21 Mar @ 9:17am 
Try increasing 'death_chance_base' to 50-100.
Mr Tibbs 21 Mar @ 2:01am 
Love it! But it only seems to kill 1k then stops.


I've got 32k people in the world (10k just my dynasty).

But the mod only goes to 29k before the pop starts quickly going back up to 32.

Any ideas?
Voleres 13 Mar @ 8:13am 
thank you, you're a saint :steamthumbsup:
CreamKaKao  [author] 13 Mar @ 6:50am 
Updated for 1.15
Rutars 13 Mar @ 2:56am 
I wrote about this way back but I'm putting it here again for visibility:

I've edited the files to exclude all highborn characters from being culled by adding a trigger that checks for a characters dynasties level of splendor. I've set it to be able to cull lowborn characters and those with the lowest level of splendor but not higher. To do this you need to edit two files:

I've added "Highborn_safe = 1" at the bottom of the "PopulationControl_basic_values.txt" file, right below "m_isimprisoned = 1".

Then I've added the following to right after the "AGOT Dragons safe" trigger in the "Population_Control_death" function in the "PopulationControl_on_actions.txt" file, just before
"trigger_else = { always = yes }"

trigger_if = { #Highborn safe
limit = { Highborn_safe = 1 }
OR = {
NOT = {
root.dynasty = {
dynasty_prestige_level > 1
}
is_lowborn = yes
}
}
}
Voleres 12 Mar @ 2:10pm 
Any info if the mod will/would work in the released 1.15 version? :)
Silentreflection 11 Mar @ 10:28pm 
Does this work with total overhaul mods (e.g. Elder Kings)?
yeegoreng 11 Mar @ 12:19pm 
anyone using this on steam deck? trying to find the sweet spot for the number of min-max population
CreamKaKao  [author] 28 Feb @ 2:30am 
Lag may be worse for the first few minutes.
Xueyou 27 Feb @ 7:58am 
For some reason my game starts to lag even more once i take the decision. Why could that be?
Chezire 20 Feb @ 5:44am 
does this work with elder kings?
donut 6 Feb @ 2:24am 
Also this mod breaks a save if it's removed. Tons of illegal marriages suddendly crop up.
donut 6 Feb @ 2:14am 
So i guess this mod is supposed to be run once and then removed? While it's running it has removed fps lag entirely, however now each day takes 20-25 seconds to process.
Theo 5 Feb @ 11:25am 
Does this mod work with The Fallen Eagle?
kapsellola 4 Feb @ 3:41am 
Hello, creator of this mod. Would you add compatibility for PoD?
PahlavanPikeachu 2 Feb @ 1:52am 
Is there any way to spare an NPC with inheritable traits, other than Pure-Blooded? I don’t seem to see any settings for it in the txt.
almiju 23 Jan @ 6:49pm 
Running with AGOT (and some others) and I think it's targeting dragons for me, two times within a decade three dragons "vanished without a trace" each time. The dragon pop was still ten under the limit so I pinned all the dragons and none have vanished since on that save or my new one. Are there any known load order issues or mod conflicts that would cause it to target dragons anyway?
Marco Serra 23 Jan @ 12:37pm 
Tried to change the .txt archive to allow even lower population alive (default 20.000~22.500, tried to change to 10.000~12.500), but isn't applying the effect ingame (still locking in the default values). Any suggestions?