Improved Campaign Map Performance

If you liked this item, please rate it up on Steam Workshop page.

Author: Levie

Last revision: 4 Aug, 2023 at 14:44 UTC (1)

File size: 16.88 MB

On Steam Workshop

Description:
What does this mod do?

This mod smooths out campaign map performance by reducing application errors and file query times. This is especially noticeable when moving over Nanman lands.

What is causing the stutter?

Special thanks to Spartan VI and HuntingDog[forums.totalwar.com] who had the brilliant idea to use Process Monitor to investigate FPS drops in Three Kingdoms and in Warhammer 3.

As the player interacts with the game, Three Kingdoms dynamically searches its game directory for visual assets in paths that don’t actually exist. When it doesn’t find the asset, it defaults to a secondary (and correct) location.

Three Kingdoms will go through this search loop for every mod you have installed! So, if you have 20 mods installed, Three Kingdoms will search the wrong directory path 20 times before defaulting to the correct location!

So how do we solve this problem?

The method Spartan VI and I choose to do is to copy the assets that the game is looking for into the paths that it is attempting to search. This eliminates the constant stream of errors as well as failed loops for each additional mod installed.

Future development

I plan to continue optimizing Three Kingdoms performance including opening menu performance (court screen, technology tree, etc.), as well as as other ideas that I don’t want to commit myself to just yet.

The process is particularly tedious as Three Kingdoms has a lot of unique art sets thanks all the unique hero art assets that each have their own unique paths that I have to build out from scratch. I’m also being careful not to copy EVERYTHING over if it is not needed because this will cause file size bloat very quickly.

Updates

May 9th, 2022
Added further optimizations including some for 8 Princes.

May 7th, 2022
Optimization passes for bandit, yellow turban, and nanman factions.
Added optimization for Mandate of Heaven introduced characters.

May 6th, 2022
Added a few more files as well as a TON of "bobbleheads". More improvement should be noticed.

==================================

谢谢 Alex Zhao 的翻译。

这个mod是做什么的?

这个mod通过减少错误请求和文件查询时间来提升战役地图的性能。当在南蛮土地上移动时这一点尤其明显。

是什么导致了卡顿?

特别感谢 Spartan VI HuntingDog [forums.totalwar.com],他们有一个绝妙的想法,使用Process Monitor来调查三国全战和战锤3中的FPS下降问题。

当玩家与游戏交互时,三国全战会动态搜索其游戏目录中实际不存在的视觉资源路径。当它没有找到资源时,它就会默认到一个次要的(实际正确的)位置。

三国全战会对你安装的每一个MOD进行这种搜索循环。所以,如果你安装了20个mod,游戏会在使用正确的默认位置之前搜索20次错误的目录路径。

那么,我们如何解决这个问题呢?

Spartan VI和我选择的方法是将游戏要寻找的资源复制到它试图搜索的路径中。这就消除了不断出现的错误,同时减少了每一个额外安装的MOD的失败循环。

未来计划

我计划继续优化三国全战的性能,包括打开菜单的性能(宫廷界面、科技树等),以及其他我目前还不想直接承诺的方面。

这个过程极其繁琐,因为三国全战由于独特人物的机制有很多独特的艺术组,每个英雄都有自己独特的路径,我必须从头开始建立。我也需要小心的避免把无用的东西拷贝过来造成文件大小膨胀。

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.