r/eu4
•
u/Salt_Most_1429
•
11h ago
Game Modding Unofficial EU4 1.37.5 performance patch – up to ~2x faster at speed 5 (open-source)
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):
| CPU | vanilla | patched |
|---|---|---|
| Intel i5-9400F | 7.9 days/s | 17.3 (2.2×) |
| AMD Ryzen 7 9800X3D | 21.6 days/s | 38.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.
