Total War: WARHAMMER II

Total War: WARHAMMER II

384 ratings
UI Performance Patch
5
4
2
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, UI
File Size
Posted
2.127 MB
5 May, 2022 @ 10:46am
1 Change Note ( view )

Subscribe to download
UI Performance Patch

Description
Improves framerate when interacting with UI elements!
Improves campaign/strategy map frame rate (fps) and reduces stuttering when interacting with the game's UI.

DO NOT USE THIS MOD IF YOU'RE NOT EXPERIENCING PERFORMANCE STUTTERS!

What causes the UI to stutter in the vanilla game?
Using Process Monitor, I found that Warhammer 2 does a ton of access calls for UI assets in directories that don't exist. Eventually the game appears to default to the correct location, but for many players, the game briefly stutters each time the game does these data calls.

Making matters worse, the issue is severely compounded by using mods, since this cascading data call will include every WH2 workshop folder in its searches going forward. For example, if you're using 20 mods, that's 20 more data calls EVERY time the game searches for a UI asset.

So how does this mod improve performance?
To mitigate the amount of data calls the game does, I would have to either:
(1) change where the game searches for UI assets, or...
(2) place UI assets in the places the game is looking so it stops constantly searching.

I can't control where the game searches, so I went with option 2. This mod creates the folder structure the game is searching and dramatically reduces the amount of overhead as result. Not a single script or data table is used.

This mod isn't a silver bullet to the problem. If you experienced UI stutters before, you'll probably still experience it with this mod, but maybe a bit less severe.

Credits
Thanks to HuntingDog on the official Total War forums for bringing this up in 2019 when he encountered the same issues in TW: Three Kingdoms.[forums.totalwar.com] This thread is the reason I used ProcMon and what inspired the mod.

Thanks to Levie for porting this mod to TW: Three Kingdoms.

Tips are appreciated!
Like my work? Buy me a coffee! Just click the tip jar:
[paypal.me]
42 Comments
Spartan VI  [author] 12 Jul, 2023 @ 8:38pm 
Not that I know of @ both of those questions
V 12 Jul, 2023 @ 7:56pm 
1) Is there a way to fix the click an agent/army/lord FPS drop issue? I'm guessing there isn't or you would've fixed it already.

2) Is there a way to fix lizardmen units: when going on rampage they leave the control group?

I don't mind the rampage quirk, I just hate it because after they've calmed down they still don't come back to the control group. And in a battle I have to constantly rebind units back to their control groups.
Spartan VI  [author] 8 Jul, 2023 @ 6:48pm 
Should work for all games, vanilla or not.
Claire <3 8 Jul, 2023 @ 12:04pm 
does this work for the sfo mod and also for the classic vanilla?
Moriarty 5 Feb, 2023 @ 1:15pm 
Yeah, that is most likely the reason your right. Since it paints the movement it tanks alot of fps. Zoom out and it kills my 4090 down to 20fps xD. Guess i have to wait 3-4 months again until i can play game. Waited a year from release and still problems whit the game.

Thanks anyway Spartan and thanks for all your hard work!
Spartan VI  [author] 5 Feb, 2023 @ 12:55pm 
Most likely not the same issue, you'd need to open ProcMon to make that determination. Usually when you click an agent/army/lord, the game paints their movement range / zone of control, which has tanked framerates since Shogun 2 at least.
Moriarty 5 Feb, 2023 @ 12:42pm 
Did not know that and great job man! Unfortunately it seams like the problem is back in latest patach. Since clicking on a lord drops fps 20-50fps later in mid-late game it really gets bad.
Spartan VI  [author] 5 Feb, 2023 @ 12:28pm 
@Moriarty, this mod started because of WH3, that's where it was first published. CA fixed it in Patch 1.3 and further honed it in later patches. Patch 1.3 notes are here where they credit me for identifying exact issue: https://www.totalwar.com/blog/twwh3-update-130/
Moriarty 4 Feb, 2023 @ 8:53pm 
Can you port this to WH3? Same problem there whit ui. As soon as you click on a lord, fps drops 20-50fps
VanGuard 14 Oct, 2022 @ 2:30am 
Finally! Man, you did a great job. Why don't devs implement a ready to go solution. It changed my experience.
Thank you very much!