r/shogun2 • u/Meisgoot312 • Oct 19 '26
I fixed Shogun 2 CE's rendering pipeline to boost GPU Usage
tl;dr I dug into Shogun 2 CE's rendering pipeline to make it more efficient and was able to overhaul the core rendering pipeline, giving us 30%+ boosts to FPS. Drop the files into Shogun 2 CE's game folder and run. I hope this works as well for you as it does for me, I would really appreciate benchmark results. If it helped you, I'd appreciate a star!
https://github.com/DudeCmonMan/s2fix
When Shogun 2 CE was announced, I was pretty hyped - despite the small list of changes for a remaster, having to nuke all my mods, paying again, etc. For me, the most important thing was the performance. I was crossing my fingers, that buried under the "graphical changes and 64 bit engine", that they upgraded the game to actually be able to leverage modern CPU / GPUs. I wanted to enjoy a nostalgic vanilla Shogun 2 with 1440p res, improved textures, and buttery smooth framerates.
As we know now, that is not the case. The original bottlenecks that existed in 2011 Shogun 2 are still in the game. There are hardly any changes to the rendering pipeline that would actually make the game run smoother in 2026. Still single-threaded, still limited by a single core on your CPU, still submitting a billion draw calls inefficiently to your GPU. No matter how good your CPU or GPU is, big battles will still have your computer rendering on 1 core and 40% GPU usage. Unacceptable for a 2026 remaster.
I won't go into detail on the process I used to actually find and fix these issues for my own sake. I will only be releasing the fixes + guidance to CA on where they need to fix things. This is also NOT an M2EX type mod to the game, I don't have the time to do the work that Mataboo is supposed to do, my job beats my ass enough. This is only limited to the rendering pipeline and limited to what I can find without source code.
I also want to warn you that this is a ymmv situation. I did my best with what I could patch, it will never beat a proper source code fix from the devs. If your GPU is already maxed out all the time, this won't help you. I suspect that with modern GPUs, most people will find that it does boost FPS in a lot of situations (especially during heavy fighting).
Shogun 2, Medieval 2, Rome Total War, etc. occupy a special place in my heart and I was so sad to see such a great opportunity to remaster the game go to waste. A proper Shogun 2 2026 would have been an absolute banger of a release.
I'm going to continue on this project at my discretion, I want to enjoy high fps Shogun 2. If there's enough interest, I'll consider re-implementing this for OG Shogun 2, since clearly CE's got some issues to figure out. It was quite a bit of work tracing the rendering paths and making all the harnesses to debug everything, but after digging into it, I have a feeling that a lot of my learnings can probably applied to OG Shogun 2. My thinking was that Shogun 2 CE is the new game and that I should lean into the more modern tech of Shogun 2 CE. Looks like I was wrong, since they nuked the game from Steam hah!
There's a lot more work to do if I go down this path. I pray that CA / SEGA actually invests the proper time to fix this game. I would be happy to come on as a consultant to see the source code and find out how to properly fix it, hit me up CA. I just want a properly functioning game.
Obligatory Yarimazing!
For those that care, I know it's a touchy topic especially with the whole AI dogwater upscales in CE (I'm livid about this, it makes AI usage look terrible). I used AI to help me investigate possible leads, but all the ideas and applied expertise is mine. The test harnesses, a/b testing, debug sandboxes, game simulation + mocking, etc. all that is from previous experience. There is very real work going on here, AI is just making my work faster - as if I had a team executing my vision. Guys please, I already work my ass off on the weekdays, let me have a fun weekend project - this release is the result of that. One weekend was able to turn up 30% in performance.
19
u/No-Debate-3403 Oct 19 '26
I’m wondering how many of these community “fixes” are just throwaways since we’ll probably never see CE again, or at least it will be in another form. The better bet is most likely to use the knowledge and patch OG version until this things settles.
9
u/manila_traveler Oct 19 '26
Your mod & the one published by JakeTheRipper are the ones I'm most keen to find. You can count on modders to add more provinces, more clans, changes to game design, etc. according to their individual vision for the game, but we're all doing it from the base platform of an unoptimized Warscape engine. Thank you for sharing these efficiency tweaks with the community.
4
u/Patrick_Atsushi Oct 19 '26
Just wondering, is it done by de-compiling with LLMs?
I think the norm in software engineering/selling field is going to change enormously due to this possibility.
6
u/Then_Law8990 Oct 19 '26
Honestly, they really screwed up big time by leaving the game in such a state and with so little content. The original was a AAA title back in its day, and given the boom surrounding the series, it could have sold a ton. I don’t know if they’re just lazy or if they’ve lost the quality they used to deliver. A disastrous effort like this just ruins the brand.
1
u/West_Incident744 Oct 26 '26
idk why but its causes weird gpu glitch and artefacts in battles :(
2
u/Garret1510 Oct 20 '26
You dont need to explain yourself. AI is awesome in the right hands and without it i would have so much stress with many things. For example Linux is a completely new thing for me and AI helped with most things while showing me what i NEED to know in order to use it properly.
Also these changes should have been done by mataboo, i really dont understand why this could have happened. Like they think us stupid or something else happened
1
u/Schattenwaffen Oct 26 '26
Many thanks.
One question, does it reduce CPU usage?