r/eu4 • • 11h ago Bravo

Game Modding Unofficial EU4 1.37.5 performance patch – up to ~2x faster at speed 5 (open-source)

190 Upvotes

I made an open-source version.dll for EU4 1.37.5 that makes the game tick faster. No game files are changed.
Install: unpack version.dll and EU4Perf.ini from the release zip next to eu4.exe
Large pages (significant boost of around +12% to the game's performance): see README on GitHub.

Tested on GOG and Steam, Epic Games should work, but I give no guarantee (AOB signatures)

Results (observer, new game 1444, speed 5, average over 1445–1448, every patch on, both my PCs, GOG build):

CPUvanillapatched
Intel i5-9400F7.9 days/s17.3 (2.2×)
AMD Ryzen 7 9800X3D21.6 days/s38.7 (1.8×)

Speeds 1–4 wait for the game's own timer, so there you feel it as speeds that hold their pace in the late game, and as a shorter freeze on the 1st of every month (688 → 404 ms on the i5-9400F).

Want to compare on your machine? See "Measuring on your machine" in the README.

How it works. I profiled the game with Intel VTune. A game day is one long serial pass over ~670 countries on the main thread; the profile is flat (no function above ~7%), and about a third of the main thread's time is spent waiting on RAM. So nothing is made to "compute faster", the patches cut work the game repeats for no reason, draw fewer frames at speed 5, and make memory access cheaper:

  • Speed 5 frames: fewer intermediate frames during the monthly tick; up to 3 days computed (not skipped) per drawn frame, you can tweak it in .ini file, as for some 3 days per frame may feel janky.
  • Repeated work: a daily walk over all diplomatic relations runs monthly; estate validity is checked once a month per country; tags without provinces are skipped in the monthly tick
  • Memory: the game's heap moves to mimalloc, optionally, but highly recommended, on 2 MB large pages (+12% more; needs a one-time Windows permission, script included, the game will lock ~3-4gb of RAM for itself)
  • Army/Navy tradition refresh: the biggest single gain (+19%), off by default, because it changes when some cached values get updated, but I, personally, have not noticed any divergence from the vanilla game.

Settings: every patch has its own switch in EU4Perf.ini. The ones you may want to touch: days_per_frame (3 by default; set 2 or 1 (vanilla) if the simulation speed / frame rate trade-off at speed 5 bothers you) and tradition_refresh (0 by default, 1 for max speed). What each patch does, why it's safe and what you might notice is in the README.

Caveats: single player only, so remove the DLL before multiplayer. Ironman and achievements work. The small deviations from vanilla (e.g. an estate can appear up to a month later) are listed in the README.

Epic Games. The DLL finds the game's code by byte signatures, so Epic Games 1.37.5 should work, but nobody has checked yet.
If you're on Epic and try it, please comment with these lines from EU4Perf.log (next to eu4.exe): eu4.exe: TimeDateStamp …, signatures: … and the last line. If anything doesn't match, no game patch is installed and the game runs as vanilla (only the memory allocator change still applies, it needs nothing from the game's code anyway).

Download .zip & source code:
https://github.com/neonbones52/eu4patch/releases/tag/v1.0.2
https://github.com/neonbones52/eu4patch
the full source is there and builds with build.bat.
(I'm the author; this is the only official source)
VirusTotal: 1/67 is one heuristic engine, which is common for a DLL that hooks a game's functions.

Not affiliated with, or endorsed by Paradox Interactive.


r/eu4 • • 4h ago

Image Why am I losing this battle?

Post image
50 Upvotes

Any advice on how to not suck at combat would be greatly appreciated pls.


r/eu4 • • 6h ago

Humor I am done….

54 Upvotes

So I wanted to do a teutonic order campaign where I beat Poland solo, no allies, no help…

1600… I have everything planned out, Prussian monarchy, 40 drilling divisions, soon to be 60, forts everywhere, ramparts…

Ian talk as fuck, innovation, economic, quality and offensive ideas… Poland is about to get his ass beaten…

I check the war my soon to be 60k against their 160k with allies, ez Prussian win, just 4 more months…

Suddenly, I get a message of a bohemian succession crisis, 1 sec later Poland declares a succession war against me…

100k poles suddenly appear on my border, all my divisions are drilling, all my forts mothballed…

All my units get instantly stack wiped, my forts sieges in seconds, Poland leaves me only Danzig and koenigsberg in the peace deal….

…I’m humiliated, 6h play time wasted…

…Going to hate fuck Poland tomorrow as Teutons with Bohemia and Hungary as allies in 1449 after that…


r/eu4 • • 8h ago

Discussion Just finished my North American native tribe game. Was kind of a let down to be honest.

Post image
69 Upvotes

r/eu4 • • 14h ago

AI Did Something Why would a nation in southern Asia that hasn't been discovered yet be guaranteeing Tunis?

Thumbnail
gallery
73 Upvotes

R5 Tunis has never expanded and some tiny Asian nation way far away is guaranteeing it. It would be inconvenient for me to fight at this time.


r/eu4 • • 9h ago

Discussion The revolution mechanic is really badly done IMHO

30 Upvotes

I get that they wanted to replicate the Napeleonic wars but the way it is right now...its more of an annoyance than anything.

The most annoying thing is that when the center of revolution spawns in your country, you cant remove it except by baiting the disaster to trigger.

Which requires at least 20% revolutionary spread to show up on the stability screen, and then 50% revolutionary spread to start the disaster unless you are playing badly on purpose (e.g. have high war exhaustion, low prestige, etc).

While sitting around waiting for the revolution to spread, revolutionary rebels will keep spawning because any province with revolutionary ideas gets up to +25 unrest at max absolutism.

And heres the funniest part...beating the rebels will remove revolutionary ideas from the region, making it harder to start the disaster.

And you want the disaster to start ASAP because otherwise, you cant get rid of the revolution and the rebels will just keep spawning forever, since beating them only removes revolutionary ideas from the region temporarily.

So the meta is to sit around and NOT fight the rebels so you can trigger the disaster faster to get rid of the revolution permanently...which is very counter intuitive.

The general idea seemed to have been that a failing great power would go revolutionary and make a comeback...but ive literally never seen this happen in any of my games. It usually spawns in my empire because im the first to spawn enlightenment and fit the conditions, and then i dont think ive ever seen a backup center of revolution spawn after i destroy the first one.

The revolutionary target isnt significantly more powerful than a regular country, and in the hands of AI, is actually weaker...because they will sit around and let their revolutionary zeal drop to zero (you are supposed to go to war with the monarchies surrounding you, but the AI gets scared easily and wont do that).

Theres no mechanic for a Napoleonic Wars style coalition to form either, because PDX didnt bother to make one. So all the monarchies in Europe get a massive legitimacy hit and liberty desire in their colonies when the revolutionary target spawns...but the AI has ZERO reaction to this. PDX literally didnt bother to make the AI go "gee, i guess we should do something about the revolutionary target". They will just sit there and do nothing.

Ive always felt underwhelmed when i went revolutionary because...you dont really get anything special out of it. The player probably has a massive and prosperous empire at this point and getting a bit more morale wont really make a difference.

Edit: I do see one advantage of going revolutionary i guess...if you become a revolutionary empire, you can bring the estates back and give them all the privileges you want since you use revolutionary zeal, not absolutism.


r/eu4 • • 2h ago

Image How was Kilwa able to abolish slavery this early?

Post image
6 Upvotes

r/eu4 • • 1h ago

Advice Wanted Am I cooked (kazan vh trying for mongol empire at 1600)

Post image
4 Upvotes

So i am playing as horde Kazan. My allies are poland. Yes only poland. I have yuan and khorasan as vassals. I just lost an offensive war to the ottomans, ceding most of the caucasus. But i managed to seperate peace muscovy & transaxonia (ottos allies), forcing them to give up the alliance for future conquest. Poland is super weak now and im in horrible shape economically. How should I even continue? Also notice my manpower is exceptionally high (very rare) and I dont know how to abuse that. btw ottos has 200k troops and i have 40k and they hate me how do i even beat them in the future. And ming has 120k and they are tech 7 im tech 9 should i attack them. But before all that my economy needs extreme fixing please help


r/eu4 • • 8h ago

AI Did Something found myself in a little bit of a pickle

12 Upvotes

i warred brittany, burgundy, and scotland within 20 years (game like just began) and now france and the HRE wants to flay me alive


r/eu4 • • 10h ago

Image What do you guys think of my Lube campaign so far

Post image
16 Upvotes

r/eu4 • • 1d ago

AI Did Something The Sun Never Sets on the Lithuanian Empire

Post image
628 Upvotes

Lithuania was at war with Norway (Which had a colony in Mexico) and then snatched their colony. Didn't stop Castile from making a colony in Mexico though.


r/eu4 • • 28m ago

Image Guess The Player

Post image
2 Upvotes

(Repost,last post was deleted due to no body text xd)
Medium Difficulty i guess.


r/eu4 • • 9h ago

Image why are random Catholic provinces going Orthodox

Post image
9 Upvotes

playing as Latin Empire (from Byzantium), haven't taken any decisions or had any events related to something like this. it also started happening recently because none of this had happened 10ish years ago


r/eu4 • • 5h ago

Question Can Italy form Jerusalem with Provence mission event?

4 Upvotes

I am playing as Provence, I want to culture shift to Tuscan and form Italy while I have the event open after completing the Provence mission of taking back Jerusalem. I want to do this so I can play as Jerusalem (and get the achievement) while having Italian ideas and missions.


r/eu4 • • 14h ago

Humor "Im Fine" the "Fine" in question:

Post image
15 Upvotes

i love late game and fighing rebels...


r/eu4 • • 8h ago

Question How do the unique Eyalet events work?

4 Upvotes

Hi

Wanna play an otto game where i create all possible "unique" eyalets (usually created by unique events) with clean borders. This include the Transylvanian and Slovak mini eyalets from the Hungarian administration event, and i want to be able to decide which nation they get released out of (like, their tag, when possible like for the moroccan and north italian ones)

I haven’t understood from the wiki how the events work though, apart from Austria, which requires Austria to be vassalized (can be done via mission tree CB)

Does anyone have some knowledge on these events and how they work? Thx in advance!


r/eu4 • • 23h ago

A.A.R. New favorite way to form the Netherlands

51 Upvotes

Friesland into Netherlands.

You start with the Tier 1 government reform Peasants Republic, which rules (10% prod efficiency, 5% morale of armies, just two estates to manage). I quickly conquered East Frisia and full-annexed its ally Utrecht in the same war, then backstabbed my ally Gelre by attacking its ally Oldenburg and sniped its capital province to connect my lands. AE was pretty hot at this point, but I was now big enough to ally Denmark and France, so...coalition schmoalition.

Admittedly I savescummed a couple of times to avoid Austria getting the Burgundian inheritance and took Den Bosch and Amsterdam in a war off independent Burgundy and its vassals. Eventually the inheritance went to Brittany, which gave into Austria's demands to release the Low Counties. Easy pickings, although most of North Germany was pretty mad about it and I had to go slow to avoid Austria joining a coalition, which would have been bad (they ate half of Bohemia and had a loyal Hungary PU by this point). Eventually I had the region (plus Oldenburg and Cleves) fully conquered and I clicked the magic button to form the Netherlands.

Led the Protestant League to victory after my rival Bohemia took the emperorship from Austria. Took Calais and a bunch of Portuguese land in the New World in the peace deal. OPM Bregenz was somehow elected as the new emperor, so attacking into the HRE is now easy...

Very fun run. Forming the Netherlands is always a good time: snowball early, get disgustingly wealthy, dev to the moon, stay ahead on tech, clownstomp anyone who looks at you funny with high-quality armies and as many mercenaries as you like. Previously, I had only formed it starting as a vassal of Burgundy, so it was fun to do it by building a modest powerbase and then marching south into Holland et al. And Frisian names are a lot of fun too (with perhaps the best one coming at the end of my Low Countries conquest, when I liberated Protestant Luxembourg from the archbishop of Trier).


r/eu4 • • 1d ago

Humor Have never seen this event in over 2500 hours of playing.

Post image
140 Upvotes

r/eu4 • • 17h ago

Question What tf do I do with blobbing Otto?

16 Upvotes

If I dont't play close enough to kill them early on they tend to grow like crazy: in my current game (Delhi) they reach from Arabian Sea to Vienna and nearly got Moscow. It totally ruins my game, and it's not the first time Is there any way to contain them without mods or cheating (I do not use commands) Probably not, and the answer is: suck it hahaha


r/eu4 • • 11h ago

Question Beginner here, What is the Best Ideas to pick for an Expansionist Sunni Persia ?

5 Upvotes

Title. My Goal is to conquer all of the Persia and Levant Subcontinents and Maybe the Balkans (still not sure about that one) Starting as Ajam.


r/eu4 • • 4h ago

Tip i do major iron man coalition wars on x5 speed

0 Upvotes

fear me


r/eu4 • • 1d ago

Image Just got the mouse pad

Post image
469 Upvotes

Thank you Zlewikk, it was an insta-purchase


r/eu4 • • 1d ago

Completed Game Byz to Rome

Post image
53 Upvotes

R5: I fully believe that Byzantium is the story mode arc of EU4. The mission tree perfectly serves as a counterfactual. I read Roger Crowley’s 1453 and city of the worlds desire for this play through and it made it so rewarding when Giustianni (RIP to my GOAT) arrives and you beat the Saracens. Then there’s that first war against the Venetians.

So many crazy things happened. I got Lithuania as a PU and had it ruin the second war with the ottomans bc I had to fight off Poland in the succession war. I later got Austria as a PU (I married them on a whim when their ruler was 53. An heir popped up and then both died) and had to fight a death war against the French.

I really gave this one everything I could, and I’m thrilled with how it turned out. I’m an okay EU4 player, but I’m hardly good at the game.


r/eu4 • • 13h ago

Question poland bohemia union

3 Upvotes

for the poland bohemian union event i know i need to wait a month tick to save scum it but do i need to do a new month each time. for example if i first do the event in july do i then do it in august and then september or just august.