Kenshi
90 个评价
Kenshi Optimization Guide for Performance with max Visual Quality
由 SCARaw 制作
This Guide is for Majority of Players who meet often more than minimal system requirements for kenshi and game
is still working like run with your old computer or if its working fine your fans are stressed to degree beyond AAA games on ultra

Guide contain a lot of Advice, settings and mods that require Efforts from the Player to implement correctly
This Guide is English only however you are more than welcome to translate it
2
2
2
3
   
奖励
收藏
已收藏
取消收藏
Introduction
This guide was made based on my previous Guide quite popular in modding wiki for kenshi:
https://kenshi-modding.fandom.com/wiki/Kenshi_Modding_Wiki:SCAR%27S_Performance_Optimization_Guide

Guide collect multiple System Settings/Programs/Mods players can use to make kenshi run very fast
Goal of the guide is to increase Stability and the Framerate of the game
Guide Will be shorter and more to the point version of the original
Focused on most impactful choices for Kenshi
You can pause/play after each successful step and return later or skip things you don't wanna do now
Important Basics
Install the game on SSD
Kenshi have a lot of loading in itself
SSD help reduce loading and hold consistency while traveling thru the large map
Game will work from HDD, its just far worse experience
Especially load time from the menu to existing save, but everything will load longer...
System Stability Framework
we will prepare your in-game and system settings to naturally boost your performance
How you should even launch Kenshi!
if your launch settings are different than this, you are running the game wrong
  • FullScreen - make aplication run simultaniously to your system, instead of under your system, it normally provide some performance related benefits, but in kenshi its less stable and also perform worse :)
  • Borderless - modern fullscreen it make aplication run under your system as another window and let you Alt+tab normally and don't crash your system or mouse when game crash
  • You wanna run and optimize your game around running in your native resolution if you can, however resolutions above 1920x1080 can have problems and bugs
What you should Install to run the game better
Runtimes:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Helps running the games and programs under C languages, very good to have
Microsoft things

Framework:
https://dotnet.microsoft.com/en-us/download/dotnet-framework/net481
can help throw error at you if something is broken, rarely can give you DLLs to run software
its more microsoft things - i do not own microsoft even if i should xD

Other Useful options
Disable Distant Towns:
by BAD MODS i refer to mods that add/edit cities made by lazy authors
everybody could generate proper distant files for their city-mod and include in package
OR at least instruct people to have it off when using mod, however since some poeple prefer to just ignore everything make quality of their mod sub-optimal and cause my blood to boil here we have this section...
  • Sometimes lofi themselves might not have every distant in update package, however since all .mod files are in game installation folder they should generate without causing any crashes
  • image all your city tweaker "advanced overhaul" need to do is go to data/buildings/distant and take over newly generated ones to the mod before uploading!...go ahead excuse your favorite lazy-ass i will wait...
Disc Space as Memory Allocation to optimize the game:
  • Start > Control Panel > System.
  • Under Tasks, click Advanced system settings
  • In the System Properties window, click the Advanced tab.
  • Click Settings under Performance.
  • Click the Advanced tab, and click Change under Virtual Memory.
  • Select Custom size and set Initial size (MB) and Maximum size (MB). For the initial size,
  • I Recommend going for something like 8096 to 12144.

Your game works slow not because you have bad PC or because you need to lower graphics...
There are more settings you can check in order to improve the situation, but i wanna finish today
Advanced knowledge and minor black magic
While are you at it, lets start with GPU optimization
Goal of this post is to help you replicate some of the positives from this mod:
https://www.nexusmods.com/kenshi/mods/804
on any GPU - if you got the mod you can skip this step
Lets make the magic Happen:
Woah big magic, turn on Vsync :)
don't worry its a start:
  • Find "Overlay" and switch it "off". I don't know what it does, in theory this enables OpenGL overlay planes, but no idea if they are used in Kenshi and how.
  • Find "Exported pixel types" and disable that thing. This might be placebo, but my game ran faster without it and I can't notice any differences in the visuals, or anything else for that matter.
  • Find Threaded optimization and turn it off - Kenshi does not support multi-core CPUs so by forcing it off every calculation will be send directly to CPU0 without delays or problems with resource mismanagement.
  • Find "power management" and set "Optimal performance" or "driver controlled" if you have this option. Maximum performance only sounds good and even for a weaker PC you should not use it because it only diverts additional power to the GPU regardless of whether or not it is required
  • Find "multiple screen boost/different GPU processors" and set "one screen mode". This force instant decision making about where to display the game and how to manage multiple screens.
  • Find "memory allocation" and select "apply to needs". I need better testing with this option, seems like the aggressive setting made my game starting slower
  • The description for this function was too cryptic for me, but from what I have seen "apply to needs" slightly improves game launch speed.
  • Find "Anisotropic filtering" and set it to "off"
  • This option allows Kenshi to render textures in higher resolutions and scale them down, turned off save resources, but can make game less graphically appealing (barely noticeable on a strong PC, and I can't spot the difference on a weak one)
  • Find "triple buffering" and set it to "on" - if you have Vertical sync turned on in Kenshi options.
  • Turning everything off doesn't necessarily provide performance boosts, this option doesn't (according to Nvidia and my tests). Important note, this boosts performance only when V sync is on in Kenshi settings.

Sources:
i made it all up (jk)
https://www.nvidia.com/content/Control-Panel-Help/vLatest/en-us/mergedProjects/nv3d/Manage_3D_Settings_(reference).htm
+ sources listed under Nvidia mods
+ my own tests and knowledge
+ digs from ancient forums
Advanced Black magic - good mods
this section will be dedicated to 2 mods:
Performance Fix
https://www.nexusmods.com/kenshi/mods/1216
Most complex Kenshi structure solution that does not modiify Exe
this mod scan the files and optimize than, scan the references and fix them
results are quite pleasing, but installation is also quite long (automated)
Particle System Override
https://www.nexusmods.com/kenshi/mods/950
First and most advanced and most updated Particle Replacer, this comes with replaced scripts, fixed textures, crash prevention and couple of more performance related buzzword that are better explain in the mod description

Cool, more text
Use Mesh updater if you use modded meshes and steam mods
Because quality control is rather poor, you might wanna scan over the modded stuffs too
https://www.nexusmods.com/kenshi/mods/1212
Mod started as Performance Fix older brother
Currently totally outperformed on the field on game files found new purpose in scanning mods
Performance fix and my code take poorly to request of scanning and Structure i use (basic windows code bash with advanced tools) does not identify DLLs to allow steam/gog check
Mod is pretty solid and much faster which i prefer for mods/quick change checks

DXVK/Vulkan for Kenshi
you can simply render complex graphical operation with Vulkan
either by using dedicated mod (currently up to date):
https://www.nexusmods.com/kenshi/mods/1294
or DXVK directly (we base new versions on DXVK and just compile new DLL with changes):
https://github.com/doitsujin/dxvk/releases
its not for every game or everybody, but generally its worth a shot

Limb Icon Fix
While mod is not performance oriented
as result of clever coding mod provide boost to inventory processing
for shopkeepers, shop inventory, containers with limbs and player inventories
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2515950648
"in Vanilla game check if object icon is autogenerated or not (most limbs and all the prosthetic are)
game check if icon was generated before, game load icon if it was generated or set the mesh, set the camera, set the texture and generate it"
all of this is skipped by the mod

Foliage and clutter problems
Generally speaking Performance Fix + GPU optimizations should be enough to make foliage spam less painful, however its fair to say game still produce a lot of foliage and its hard to tell if all of it is essential for author vision for the game
i would recommend:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3054577051
Less Foliage Mod that doesn't block your doors
  • its basic less foliage mod with Quality Control :)
  • i believe we might have better solution in the future, im looking forward for mod: FASTR that might turn into essential foliage mod, but for now i chose this thing
or Foliage and Stones Total Rework
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3328905177
Remix of vanilla assets and files to decorate world better
with better performance too
i believe it can be better solution later down the line
use only one Foliage Mod
KPM low poly clutter
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3392901904
this 0 screenshots mod helps with performance
i tried to make the script to do it, but no dice xD
turns out you just need someone to do 400 models for you
it sux to have so good mod under "do not copy or edit" cause
Boulder-Star01 Fix
Amazing new fix of mine that does nothing
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3498912211&tscn=1749904773
Okey let me explain, mod fix the missing link in FCS data and fix crashes as result
very cool small mod that improve stability of the game for no performance cost
there should be small performance gain from it due to engine not having to rebound itself
(when engine face missing link it need to improvise missing data or stop working)
Recommended in-game settings and why
This section contain only settings to avoid or bugs that happens when you have things too high/too low

Character Rendering Range (view distance actors, whatever)
from what i know it does not work about 5000 - default value
so you can set it to whatever and it will not work, but it might take additional resources

Visible Shadow Range
This above 4k in most places and above 3k in some places
can cause visible shadow distortions
they looks kind of ugly so you might make your game look better by lowering this xD
and yes you will gain performance

Shadow Quality 1024
Personally i know higher quality provide better looking shadows
however you just throw dark texture on shadowmaps...
Performance cost is not justified by higher settings on this

Fast Zone Hopping - OFF
it cost too much memory and CPU to maintain
if you use Performance fix and other optimizations switching zone should be much faster
even with this OFF since you still would have to load everything into graphics
*feel free to test this one for yourself, i never owned PC with 64GB ram so it might not be universally truth

Need more TESTS, but:
i think setting Chunk sizes to Large is better
its definitely better for person in base and in city-house
and for person who spend time in cities for longer than brief 1 store visit
on Older/Weaker PC its also better for map travel
i need more tests to confirm if its universally better option

This is all i can confidently state for now
Conclusions and closure
There is a lot more you can do to improve your game
This list is not exhausted, i just wanted to highlight highest impact points
from most basic to advanced so everybody can have entry point to playing at solid framerate

you can find multiple modlists and guides sharing similar tips so i don't think its revolutionary, its just nice to have all of this together imo
Other things i do around kenshi:
i made more guides
on steam, i mostly wanna collect all the tips/guides/answers into easy to find steamguides so it will be easy to find for me and for others, idk i been answering a lot in community and its hard to have all the knowledge in head 4 years later
https://psteamcommunity.yuanyoumao.com/id/SCARaww/myworkshopfiles/?appid=233860&section=guides
i do mods for kenshi
Most of my mods are on nexus, but whenever possible i upload to steam
https://next.nexusmods.com/profile/SCARaw/mods
i also mod a lot of games, not just kenshi, kenshi was just in dire needs to not dip bellow 30FPSes when i played it and i decided to go to war with all the loadings and lag spikes in the game!
i made giant calculator database thing
https://docs.google.com/spreadsheets/d/1pvr2X3ua34ItW2y-t9HlJFHKAp2o1y564tkqLvIgQNY/edit?usp=sharing
this doc is massive and it contain a lot of formulas and tools to calculate nearly everything player can dig out from the game info
basically excel recreation to the game engine. logic and mechanics xD without junky consistency errors of kenshi gaming
i do things around Fandom and help people in community
or ♥♥♥♥♥♥♥♥ dumb memes or weird responses
i recently been posting more memes to steam and nexus, idk how you call it where you post 1 meme everywhere so people just find it where they feel comfortable
  • i still don't wanna use twitter, i hate this place
Have fun Playing
34 条留言
SCARaw  [作者] 9 月 29 日 下午 10:27 
no worries, i only recently started working on the settings
im mostly looking for bugs and related performance problems when settings change
i mention whatever i find useless in Recommended in-game settings
PepperCat 9 月 29 日 下午 8:59 
Makes sense, I just wanted to confirm it was nothing important! thanks for the clarification!
Love the guide and your mods!
SCARaw  [作者] 9 月 29 日 下午 8:42 
1 is default OUT OF THE BOX VALUE
when you make highly technical Performance Mod
you wanna MINIMALIZE impact of "personal preferences" and other variables that could influence the text
by leaving settings default i can do that, this was on out of install steam copy on kenshi
its not related to anything, i just launched the game to get the image that match launcher settings from previous screenshot

people act like default settings right from installation would have deeper meaning that to STANDARDIZE TESTS
PepperCat 9 月 29 日 下午 7:31 
Hello! First I wanted to say that all your mods are top mods. I installed pretty much everything even before seeing the existence of this guide. Now I've also followed some of the missing things mentioned here and I have to say that I have an awesome performance even with a wonderful graphic quality (textures in maximum, lighting and shadow mods, reshade, etc). But I wanted to confirm something, in one of the screenshots I see you have "Grass View Range, Foliage View Range" etc all in one. Is there a reason for that? I mean, as I already have good FPS, increasing it I assume would give me better visuals at the cost of some FPS, right? or maybe the look and feel doesn't change that much to justify increasing those values.
Elizabeth 8 月 6 日 上午 8:04 
I mainly do it so that my 3950x can hit its single threaded boost clock more reliably, temperatures aren't really a concern, its mostly just to force my CPU to hit its single core boost clock, I'm not entirely sure what CPU you have SCARaw, but ryzen can be a bit weird with boost clocks especially zen 2, but its helped my performance, might be helpful for people with older ryzen cpus too. It depends on the game though sometimes spreading the workload out is helpful but sometimes it can get funky, depends on the game though, but kenshi seems to benefit from a lower CPU affinity with a high core count

Your guide is great though and has helped my performance a lot, thanks :steamthumbsup:
SCARaw  [作者] 8 月 4 日 下午 9:35 
Could you elaborate why "I've been using it but I noticed that the overall CPU utilization, wasn't really hitting one core it seemed to be spreading out the workload of the primary thread as far as I could tell to the entire CPU which isn't ideal,"
Spreading out workload on entire CPU which lower overall usage and temperatures isn't ideal for single core application? don't all of you complain and cry that game is taking 100% of your core0 and complain over game being single core only?
isnt spreading workload and utilizing your whole CPU more evenly be IDEAL SOLUTION?
Elizabeth 8 月 4 日 下午 8:12 
I've been using it but I noticed that the overall CPU utilization, wasn't really hitting one core it seemed to be spreading out the workload of the primary thread as far as I could tell to the entire CPU which isn't ideal, not sure why tho, but maybe its an AMD thing. But I've been using process lasso a lot with my CPU as a lot of games seem to require it since it can sometimes prevent proper boost clocks from taking place with under-utilization.
SCARaw  [作者] 8 月 3 日 下午 5:48 
if you use Nvidia mod, you don't need to set affinity
if you use process lasso you can set affinity as rule, but its a lot of work that i decided to leave in old article
https://www.nexusmods.com/kenshi/articles/114
Elizabeth 8 月 3 日 下午 4:41 
Something to add to this, if you have a CPU with a lot of processors, I have a 3950x for example, without setting CPU affinity, i get about 50-60fps with everything max on 1440p, but setting it between 4-8 cores i get about 80ish fps, not sure how much lower is better but it made a massive difference to performance immediately and it keeps 1 core actually near 100% usage, with much more stable framerates
SCARaw  [作者] 7 月 31 日 上午 4:41 
Awesome, have fun playing