Repository navigation
s2fix v0.2.3 - Attacking the Campaign Map
v0.2.3 Changes
Shogun 2 Original (also includes v0.2.2 changes since it was only a pre-release)
- Fix: s2fix now works alongside mods that change the game's engine. It will give you a warning that it is applying fixes to a build that isn't the intended verison. This patch will try its best to apply as many patches as it can. To skip the warning, set ignore_build_check=1 under [s2prof] in s2prof.ini. (#2)
- New fix: vram. By default, Windows tells Shogun 2 to use a maximum of 3GB (which Shogun 2 uses 95% of), this patch pushes it to as much as your GPU can give (up to 4GB, engine limitation).
- New fixes for the campaign map:
- camprelations: every character on the map looked up the player's faction relations several times a frame, scanning a long list each time. The answers are now cached (they stay exact). An idle campaign view went from 62.6 to 148 fps in testing.
- campappearance lookup iscached too (about 0.5 ms a frame).
- Campaign map, all fixes on vs all fixes off (Ryzen 9 9950X3D, RTX 4090, 3440verage fps in three scenes, and far fewer stutters.
- New fix: contention. When the game's threads share one CCD (cpuplace), idle helper threads kept CPUs busy while the overhaul's worker threads waited for one. The workers now run at above-normal priority, and the helpers spin only briefly before sleeping.
- Fix: imposterreuse could pick an overhaul worker thread as the main thread and reuse imposter uploads there, which is never valid. It now runs only on the main thread. A latent bug; it was not shown to cause visible artifacts. No measurable performance impact for this fix.
- New: debug report generator (Ctrl+Shift+F6).
- About 2.5–3 minutes with the camera still, with an on-screen banner "Snapshot Running: , ".
- It records system, GPU, game and process details, all-fixes and per-fix A/Bs, and GAME ONLY screenshots (straight from the render chain), packed into perf-logs\report_.zip.
- User and computer names are replaced, and nothing is sent anywhere, purely diagnostic information about Shogun2 and what hooks into it.
- When using the report, try to leave the game alone until the benchmark finishes.
Shogun 2 Complete Edition
- No changes since v0.2.2 (pre-release), so posting those changes here
- Fix: overhaul program copies at batflaw that crashed the original'sv0.2.0 on battle loads. Copies are now refreshed for each range and dropped when the shader library is rebuilt.
- New fix: contention, the same as the original's.
Notes
- The debug report covers the original only for now.
- There has been reports that sometimes this fix triggers Anti Virus, that is not expected, but it snot surprising. These fixes use methods similar to hacking software to inject into the game and overwrite core functions (dll injection, memory scanning, function hijacks, etc.). If you are concerned, all binaries are built straight from source code, you can see the source code yourself.
Thanks @bbblackthorne for reporting the first issue #1, this lead me to building the reporting snapshot module.
Thanks @KarlGhartler for bringing compatibility up and for submitting #2.