There is a bug in vanilla game that causes performance issues - lag spikes every several seconds. It is in vanilla game, but much more noticeble when loaded with mods together. It looks like every 5-60 seconds (depend on game speed and mod count) you get a frametime spikes, game lags for a second and then backs to normal.
I have replicated that issue on three PC (different hardware) with the same results - Ubuntu 18.04, Windows 7, Windows 10. Here is the video of this: https://www.youtube.com/watch?v=sawWgNF5tmQ
You may clearly see a lag spikes, even in mod manager with different frametime peaks.
Here is how it looks in game:
https://www.youtube.com/watch?v=kmyLMKJ20S4
https://www.youtube.com/watch?v=rJywgUiNbv0
The problem is known, there are threads on Ludeon Studios forum:
https://ludeon.com/forums/index.php?topic=49133.0
https://ludeon.com/forums/index.php?topic=48891.0
I am not familiar with C# and unity, people are talking about issues with garbage collector.
Because that issue is connected with game itself, hope for your support. All of Rimworld gamers are influenced. You may replicate it yourself:
1. Setup MSI Afterburner to show frametime graph
2. Enable HugsLib, Mod Manager
3. Launch the game and move to mods section of main menu (or start a new game, lag loops may be a little longer to see in game).
Hope that post will be seen by Tynan Sylvester or Ludeon Studios dev team, since there are no response from them on forum.
External link →