Lag/Stuttering caused by unidentified mod

Started by firestrock, June 02, 2019, 04:53:39 PM

Previous topic - Next topic

firestrock

Hey there,

I'm about to start a new Rimworld playthrough and after spending alot of time searching for and filtering out mods I came up with quite the modlist. Everything is working fine(ish) and there are almost no errors on startup so I decided to give it a go.

My problem is that my game seems to stutter for half a second every ~9 seconds. The delay between the stuttering is always the same and seems to be affected by game speed. At x3 speed it happens every ~3 seconds so it seems to be linear.
I tried randomly deactivating mods but that only slightly increased the delay between the next lag but didn't completely remove it. When I removed all the mods the game was running fine.
The stuttering also occurs in the modlist (Mod Manager by Fluffy) roughly every 6 seconds, but not in the main menu or any other menus. There is nothing being printed in the log.

Before I spend a few days disabling every mod one-by-one I wanted to ask if anybody had the same problem and maybe can help me find the mods causing this.

This is my current load list:
BetterLoading
ModCheck
MOD-E
Core
HugsLib
JecsTools
RuntimeGC
RimHUD
Archotech Expanded
ModSync RW - 1.0
Smarty Storyteller
Humanoid Alien Races 2.0
Extended Human Body Simulation
Harvest Everything!
Diseases Overhauled
Crafted Mutants
Xenohumans - Gen-spliced Xenos on the Rim
Mod Manager
Expanded Prosthetics and Organ Engineering
A Dog Said... Animal Prosthetics
[1.0] Advanced Animal Frameworks 3.4
Vanilla Animals Overhaul Reloaded
ED-EnhancedOptions
Megafauna
Alpha Animals
Genetic Rim
Rimfire 2.5
Combat Extended
Combat Extended Guns
Ammo Tweaks for Combat Extended
Megafauna (CE compatibility patch)
Genetic Rim CE Patch
GeneticRim Alpha Animals Patch
GeneticRim Megafauna Patch
Alpha Animals CE Patch
[KV] Adjustable Trade Ships - 1.0
Allow Tool
Animals Logic
Apparello 2
Assign Prisoner Beds
Auto Seller
Bargain Tweaks
Better Workbench Management
Big Batteries
Bigger Maps
Blueprints
BoomMod
Bricks Don't Vanish
[KV] Change Dresser - 1.0
Change map edge limit
[KV] Change Mirror - 1.0
Chemicals & Neutroamine
chickens Multiproducer
Climate Cycle++
Colony Manager
Common Sense
[KV] Consolidated Traits - 1.0
CuproPanda's Drinks
Death Rattle
DeepRim
[1.0] Dire Raids
Dismiss Trader
Don't Shave Your Head 1.0
DontBlockDoorMod[1.0]
Doors Close Fast Again
ED-ShieldsBasic
Electric Stonecutting Table
[T] ExpandedCloth
[T] ExpandedCrops
[1.0] ExtendedInspectData
Faction Discovery
FashionRIMsta
[RF] Fertile Fields [1.0]
Five Second Rule
Floor Lights - 1.0
Fluffy Breakdowns
Furnace
[KV] Hand 'n' Footwear - 1.0
[SYR] Harvest Yield Patch
Industrial Rollers
[KV] Infinite Storage - 1.0
Infused
Jewelry
Large Animal Beds
Less Arbitrary Surgery
[SYR] Light Radius
List Everything
Locks
Map Reroll
[sd] medicaddons
Medical Supplements
Medical Tab
MendAndRecycle
Milkable Colonists
MineItAll - 1.0
Miniaturisation
Mining Priority
Miscellaneous 'CORE'
Misc. Bees'n'Honey
Misc. Incidents
Misc. Robots
Misc. Robots++
Mo' Drugs CE
More Faction Interaction
More Furniture [1.0]
More Harvest Designators!
[1.0] More Lamps Always on
More Shelves
More Slaves [1.0]
[KV] More Trait Slots - 1.0
[T] MoreBedsCloth
[T] MoreFloors
MT - Silent Doors
[SYR] Neuter
OHU Ships
OHU Addon - C-77 Freighter
OHU Addon - S-342 Transporter
Pawn Rules
[RF] Permafrost [1.0]
Pharmacist
Pick Up And Haul
Please Haul Perishables
Prison Labor
Prisoner Arena
Project RimFactory - Core
Project RimFactory - Drones
Project RimFactory - Storage
Psychology
QualityBuilder
QualitySurgeon
Range Finder
[T] RawCropThoughts
Remote Tech
Replace Stuff
Reverse Commands
Rimatomics
Rimefeller
[KV] RimFridge - 1.0
RIMkea
RIMMSqol
Rimsenal - Rimhair
Rimworld: Spartan Foundry
RT Solar Flare Shield
RunAndGun
SeedsPlease
Share The Load
Simple sidearms
Simple Slavery[1.0]
Skilled Stonecutting
Smart Medicine
Spoons Hair Mod
Stack XXL
Stackable Chunks [1.0]
Static Quality Plus 1.1
Storage Tweaks
Stuffed Floors
TD Enhancement Pack
Tech Advancing
Toggle Harvest
Toggles
Giddy-up! Core
Giddy-up! Caravan
Giddy-up! Battle Mounts
[KV] Trading Spot - 1.0
[RF] Tribal Raiders [1.0]
Ugh You Got Me
Various Space Ship Chunk
VGP Vegetable Garden
VGP Garden Drinks
VGP Bulk Garden Drinks
VGP Garden Canning
VGP Garden Gourmet
VGP Garden Medicine
VGP Garden Resources
VGP Garden Tools
VGP More Veggies
VGP Soylent Production
VGP Xtra Trees and Flowers
VGP_CoffeeTeaDrugs
Wall Light
Wandering Caravans [v2.4.0]
[KV] Weapon Storage - 1.0
[KV] Weapon Storage Combat Extended Patch - 1.0
What Is My Purpose
While You're Up [1.0]
[RF] Wild Cultivation [1.0]
Work Tab
Xeva's Rimhair
1.0 - Imprisonment On The Go! (Make Pawns Prisoners Without Beds)
4M Mehni's Misc Modifications
Numbers
Quarry 1.0
Remote Doors
[1.0] Trading Economy Mod 3.1
Harvest Organs Post Mortem - 4.1 [1.0]
[KV] Faction Control - 1.0
Research Tree
Mod Medicine Patch
Prepare Landing
EdB Prepare Carefully

Canute

QuoteBefore I spend a few days disabling every mod one-by-one
If you don't get any help so far.
You should do the 50% methode.
Deactivate half of the mods (beside libaries and modmanager) with that methode you should find the bad mod faster then when you do it one by one.

firestrock

Thank you but that's how I found out that it only increases the delay and doesn't get rid of the problem completely. I'm afraid that it isn't caused by one mod alone but by many. That's why I'm estimating it will take days to debug.

firestrock

I think I got it. I noticed that every time the game lags the memory usage goes down. Maybe it has something to do with the garbage collector. In that case only user19990313 can help.

jay124

Was wondering if you ever managed to figure something out? I seem to be having the same issue, I noticed the frametime spikes to something like 300ms when the stutters occur.

Same thing as you, no stutter with vanilla. Though I start noticing it after enabling about 15 mods or so and any after that just makes them more frequent.

madd_mugsy

#5
Quote from: jay124 on June 27, 2019, 10:34:33 PM
Was wondering if you ever managed to figure something out? I seem to be having the same issue, I noticed the frametime spikes to something like 300ms when the stutters occur.

Same thing as you, no stutter with vanilla. Though I start noticing it after enabling about 15 mods or so and any after that just makes them more frequent.

Did either of you ever figure this out?

I've been having this same problem since the 1.0 release last year.  I never could trace it down.  It becomes more obvious the more mods you add.  All I need to do to test it is start a new game and speed up time and watch a river freeze up briefly every X seconds.  It happens in vanilla too, and it doesn't take many mods for it to become much more noticeable.  Currently I've only got 13 mods enabled and it's super obvious.  Once there are 50+ mods, the stutter lasts longer and happens more often.  I reinstalled my OS entirely over the summer (finally upgraded from Win7 to Win10), so I'm pretty sure it's a game thing.

Canute

Since only a few people encounter these thing's even on plain vanila gameplay. I am pretty sure it isn't a game thing.
Or alot more people whould have these problems.
QuoteI reinstalled my OS entirely over the summer (finally upgraded from Win7 to Win10)
upgrade isn't a newinstall, i am pretty sure you keep most installed app's too.
It would interesting to know if you encounter the problem's on a fresh installed window's with nothing else installed too.
But that is something we can't await

madd_mugsy

Quote from: Canute on September 09, 2019, 07:02:22 AM
Since only a few people encounter these thing's even on plain vanila gameplay. I am pretty sure it isn't a game thing.
Or alot more people whould have these problems.
QuoteI reinstalled my OS entirely over the summer (finally upgraded from Win7 to Win10)
upgrade isn't a newinstall, i am pretty sure you keep most installed app's too.
It would interesting to know if you encounter the problem's on a fresh installed window's with nothing else installed too.
But that is something we can't await

It was a fresh install, not an upgrade.

Scorpinax

I had this problem and it turned out to be Prison Labor. Not only did it glitch out and totally remove all my work box priorities but it also throws errors like crazy for me, probably due to some mod conflicts. Either way disabling it completely killed the stuttering for me, which makes sense since it's apparently still not a full release.

Canute

Scorpinax,
but they don't have error's and some of them say they have these lag's even without mods.

Penchekrak

I can clearly reproduce the issue just with HugsLib and Mod Manager. Probably, there is an issue in game itself. More mods you add, stronger lags you get. Will provide a video on request. Hope Ludeon Studios fix that asap (probably, not and that is sad).
IMO, most players plays with couple of mods or vanilla only, there are also lags but not as noticeble.

Penchekrak

Here is the video with timings: https://www.youtube.com/watch?v=sawWgNF5tmQ
There are four situations:
1 - Core, HugsLib, Mod Manager
2 - 10 mods
3 - 30-40 mods
4 - over 100 mods
All situations are without errors in logs. Lag spikes are clearly seen in all situations. Tested on Win7 and Win10.

peppons

Quote from: Penchekrak on September 27, 2019, 02:46:33 AM
Here is the video with timings: https://www.youtube.com/watch?v=sawWgNF5tmQ
There are four situations:
1 - Core, HugsLib, Mod Manager
2 - 10 mods
3 - 30-40 mods
4 - over 100 mods
All situations are without errors in logs. Lag spikes are clearly seen in all situations. Tested on Win7 and Win10.
I noticed RimWorld was loading things from mods i didn't have anymore, try to do a clean install: uninstall the game, delete the game folder AND the documents folder.
I'm testing right now and i had to spawn 80 colonists to start having freezes again, the lag spike from the gabage collector is like a frame skip, barely noticeable, with 3x speed and 4 mods: startup impact, mod manager, runtimegc and hugslib.

Try that out and let me know!

Kaelen Mosar

#13

Quote from: Penchekrak on September 27, 2019, 02:46:33 AM
I noticed RimWorld was loading things from mods i didn't have anymore, try to do a clean install: uninstall the game, delete the game folder AND the documents folder.
I'm testing right now and i had to spawn 80 colonists to start having freezes again, the lag spike from the gabage collector is like a frame skip, barely noticeable, with 3x speed and 4 mods: startup impact, mod manager, runtimegc and hugslib.

Try that out and let me know!


having the same issue,

1. will try reinstall and deleting appdata folders
2. will try w/o runtime gc
3. will try run w/o prison labor

Kaelen Mosar

1. still stutters every 3-5 sec
2. still stutters every 3-5 sec
3. still stutters every 3-5 sec