全面战争:战锤2

全面战争:战锤2

385 个评价
UI Performance Patch
5
4
2
2
2
2
2
   
奖励
收藏
已收藏
取消收藏
标签: mod, UI
文件大小
发表于
2.127 MB
2022 年 5 月 5 日 上午 10:46
1 项改动说明 ( 查看 )

订阅以下载
UI Performance Patch

描述
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]
43 条留言
Svarty 8 月 23 日 下午 3:40 
This makes a noticeable difference for me. Thank you very much. :steamhappy:
Spartan VI  [作者] 8 月 3 日 上午 9:26 
Not that I'm aware/capable of. You can certainly set it in your GPU driver (e.g. Radeon Chill or Nvidia's Max Frame Rate setting) however.
Level 2 helmet 8 月 3 日 上午 9:04 
On the subject of fps, is it possible to cap the fps on the campaign map? Apparently it's unlimited, which makes the graphics card work overtime.
Spartan VI  [作者] 2023 年 7 月 8 日 下午 6:48 
Should work for all games, vanilla or not.
Claire <3 2023 年 7 月 8 日 下午 12:04 
does this work for the sfo mod and also for the classic vanilla?
Moriarty 2023 年 2 月 5 日 下午 1:15 
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  [作者] 2023 年 2 月 5 日 下午 12:55 
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 2023 年 2 月 5 日 下午 12:42 
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  [作者] 2023 年 2 月 5 日 下午 12:28 
@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 2023 年 2 月 4 日 下午 8:53 
Can you port this to WH3? Same problem there whit ui. As soon as you click on a lord, fps drops 20-50fps