Faster Loading
Load big cities in about a third of the time: an 8x8 city went from 3:38 to 1:16. New cities generate faster, saves load faster, and the city settles sooner. Same city, far less waiting.
| Date uploaded | 2 days ago |
| Version | 1.2.4 |
| Download link | Sm3gm-Faster_Loading-1.2.4.zip |
| Downloads | 113 |
| Dependency string | Sm3gm-Faster_Loading-1.2.4 |
This mod requires the following mods to function
BepInEx-BepInExPack_IL2CPP
BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.
Preferred version: 6.0.755README

A BepInEx (mod loader) plugin for Shadows of Doubt. Spend your evening on the case, not on the loading screen.
An 8x8 city went from 3:38 to 1:16. New cities generate faster, saves load faster, and the city settles sooner once you arrive. The city you end up in is the same one.
New in 1.2: fewer small stutters in play, an optional measuring mode that writes a report of where the time goes, and two Quick Menu entries to go with it: write a report, and switch the mod's fixes off and on to compare.
If it saves you some waiting, a like on its Thunderstore page is always appreciated. Donations are welcome too:
Part of the Quality of Life and Complete modpacks.
What you get
- Big cities load in about a third of the time from the second load of a city.
- A faster first load too: about 40% off on that same 8x8 city, before anything has been remembered.
- Saves load about 40% faster.
- New cities generate faster: about 30% on an 8x8 city, which saves minutes.
- The city settles sooner after you arrive. Smooth play starts about 35 seconds earlier on an 8x8 city.
- New in 1.2: fewer small stutters in play. Walking into a new room does less work in one frame, log messages cost less, and the fact search stays fast all game long, not only while loading.
- The bigger the city, the more you save. Big cities are where the game gets slow, and that is where this mod does the most.
- Nothing to set up. Install it and load a city.
- Nothing in your saves. It only stores a small helper file per city, and you can remove the mod at any time.
Big cities in play
Big cities (1,000 citizens or more) get three extra fixes for smoother play. Smaller cities do not need them, so there they stay out of the way and cost nothing.
- Far citizens move a few at a time. The game moves whole groups of citizens you cannot see in one frame. Here each group is spread over the next few frames. Everyone still moves as often as before.
- Citizen decisions get a time budget. The game makes a fixed number of decisions per frame, however long each takes. Here a slow frame makes fewer and a quick frame catches up, so nobody waits longer than in the game.
- Rooms fill in nearest first. When you walk into a building, the rooms close to you get their furniture and objects before the far ones.
In a 10x10 city with 2,240 citizens, frames over 100 ms dropped from 77 to 65 per minute with these on, and the rooms waiting for their contents from 15 to 32 down to about 3.
The numbers

Vanilla game against this mod, with no other mods running:
| 8x8 city (10x10 with the ring, 1831 people) | Vanilla | Faster Loading | Saved |
|---|---|---|---|
| Load a city, first time | 3:38 | 2:13 | 39% |
| Load a city, later times | 3:38 | 1:15 | 66% |
| Generate a new city | 8:45 | 6:11 | 29% |
| 5x5 city (7x7 with the ring, 709 people) | Vanilla | Faster Loading | Saved |
|---|---|---|---|
| Load a save | 1:01 | 0:35 | 42% |
More sizes, loading a city from the second time on. These two were measured with extra content mods in the game, which changed the 8x8 times by 14 seconds or less:
| City | Without | Faster Loading | Saved |
|---|---|---|---|
| 5x5 (7x7 with the ring) | 0:59 | 0:33 | 44% |
| 10x10 (12x12 with the ring) | 7:06 | 1:52 | 74% |
A very large city generated with the game's own menu, with no other mods running:
| Very large 5x4 (7x6 with the ring, 621 people) | Vanilla | Faster Loading | Saved |
|---|---|---|---|
| Generate a new city, until you are in it | 2:29 | 2:11 | 12% |
| Generate a new city, until it runs smoothly | 2:42 | 2:21 | 13% |
Times run from the start of the load until you are in the city, on one PC with 16 GB of memory. Yours will differ, but the proportions should be similar. Very small cities already load in seconds, so there is less to win on those.
What to expect
Generating a new city gains the least, especially at the sizes the game offers without a size mod. The bigger gain comes when you load that city again: the first load builds a small helper file, and every load after that uses it. To see it for yourself, load the new city twice and compare the second load with the same load without the mod.
How it works
The game works out the same things from scratch on every load. This mod lets it skip that repeated work:
- Remembers room visibility: the first load of a city keeps what the game worked out about which rooms can see what, and later loads read it back in a moment. Since 1.2 it also keeps the rooms the game finishes in the background after you arrive.
- Finds facts faster: the game searches a long list for every new fact. An index gives the same answer right away, and since 1.2 it keeps doing so in play.
- Skips pointless breaker searches: no more searching every object in the city for a breaker that does not exist yet.
- Answers repeat checks from memory: right after you arrive, the game repeats the same checks millions of times with the same answer. The mod answers the repeats from memory and clears that memory after every pass.
- Helps Density Mod: if you use it, its search over the city's tiles runs only while a new city is being generated.
The results were compared with the game's own on several cities: every room, camera and fact check came out the same, so the city plays as it always did.
Measuring mode
Curious where your frames go, or want to send a useful bug report? Set Measure / Enabled to true. The mod then times each load stage and the busiest parts of the game in play, and writes reports to BepInEx/SoDLoadFix on its own: once the city has settled after you arrive, 10 minutes after you arrive, when you leave the city and when the game closes. report-latest.txt is kept up to date every 2.5 minutes, so nothing is lost if the game stops some other way.
With measuring mode on, Quick Menu has two entries:
- Faster Loading: write report writes a report right away.
- Faster Loading: fixes on/off switches all of this mod's fixes off and on again, so you can compare with the game as it is in the same session.
The same works with Ctrl+Shift+X (report) and Ctrl+Shift+Z (fixes on/off). Measuring mode costs a little speed itself, so switch it off again when you are done.
Good to know
- After you arrive: the game stays busy for a while once you are in the city, which can stutter on big cities. This mod shortens that: on 8x8 the time until the city runs smoothly went from 5:26 to 2:26.
- Helper files: a few MB per city at most, in
BepInEx/cache/sm3gm.loadfix. You can delete them at any time. The next load just builds them again. - After changing mods: adding, removing or updating a BepInEx mod makes the next load of each city build its helper file again, so that one load counts as a first load.
- SOD Performance: if SOD Performance is installed, the overlapping fixes switch off.
- Pairs well with: Skip Intro, which skips the logos and the press-any-key screen.
Config
You do not need to change anything. After one launch, edit BepInEx/config/sm3gm.sod.loadfix.cfg with the game closed.
| Setting | Default | Meaning |
|---|---|---|
| Fixes / RememberRoomData | true | Remember room visibility and reuse it on later loads of the same city. |
| Fixes / KeepWholeCityRoomData | true | Once the game has worked out every room in the background, keep those too. |
| Fixes / FastFactLookup | true | Find existing facts with an index. |
| Fixes / FactIndexInPlay | true | Keep using the fact index after you arrive, not only while loading. |
| Fixes / FastBreakerSearch | true | Skip searching for breakers that do not exist yet. |
| Fixes / RememberRepeatChecks | true | Right after you arrive, answer repeated checks from memory, so the city settles sooner. |
| Fixes / DensityModOnlyWhenNeeded | true | Run Density Mod's search only while a new city is being generated. |
| Play / SoundOcclusionNextFrame | true | Work out how muffled looping sounds are one frame after a room change. |
| Play / SkipLogStackTraces | true | No stack trace for every plain log message and warning. Errors keep theirs. |
| Play / PlayFixesFromCitizens | 1000 | The three big-city fixes below only start in cities with at least this many citizens. 0 means every city. |
| Play / SpreadFarMovement | true | Move citizens nobody can see a few at a time. |
| Play / DecisionTimeBudget | true | Make citizen decisions for a set time per frame instead of a set number. |
| Play / DecisionBudgetMs | 3 | Time per frame for citizen decisions, in milliseconds. |
| Play / DecisionMaxScale | 1.5 | Never more decisions per frame than this many times the game's own number. |
| Play / SmoothRoomContent | true | Fill rooms nearest first, for a set time per frame. |
| Play / RoomBudgetMs | 3 | Time per frame for filling rooms, in milliseconds. At least one room per frame. |
| Play / RoomMaxDelayMs | 200 | Rooms that waited longer than this go before the others, in milliseconds. |
| Play / RoomNearMetres | 8 | Rooms closer than this go first. |
| Play / SampleSideJobCandidates | false | Very big cities: the side job check looks through a random sample of citizens. Changes which citizens jobs are about, so it is off. |
| Play / SideJobSampleSize | 1500 | How many citizens that sample holds. |
| Play / LampShadowDistanceScale | 1 | Lamps fade their shadows out at this share of the game's distance. 1 keeps the game's look. |
| Measure / Enabled | false | Measuring mode, see above. |
| Measure / ReportKey2 | X | With Ctrl and Shift: write a report. |
| Measure / CompareKey2 | Z | With Ctrl and Shift: switch the fixes off and on. |
| Debug / CheckRoomData | false | Write comparison data after each load. Adds about 5 seconds, so leave it off. |
Install
Use Thunderstore Mod Manager or r2modman and install as normal. BepInEx is installed automatically.
To install by hand:
- Install BepInExPack IL2CPP version 6.0.755.
- Put
SoDLoadFix.dllinBepInEx/plugins/FasterLoading/inside your existingBepInExfolder.
Feedback
Found a bug or have an idea? Post it on the official Shadows of Doubt Discord: https://discord.gg/shadows
Also by sm3gm
All Sm3gm mods are on Thunderstore.
Support
This mod is free and always will be.
Likes are greatly appreciated, so if you enjoy it, please leave one. You give a like on the mod's Thunderstore page while logged in to Thunderstore. If you installed through a mod manager, open that page in your browser to find the button.
If you'd like to support future mods, or just send a friendly thought, you can do so here:
Thanks for playing.
CHANGELOG
Changelog
1.2.4
- Fewer small stutters in play: the sound muffling after a room change is worked out one frame later, and plain log messages and warnings no longer get a stack trace each (errors keep theirs).
- The fact index now keeps working after you arrive, not only while the city loads.
- Once the game has finished working out every room in the background, that room data is kept for later loads too.
- The repeat checks right after arrival cost a little less each.
- New for big cities (1,000 citizens or more, setting Play / PlayFixesFromCitizens): far citizens move a few at a time instead of whole groups in one frame, citizen decisions get a time budget per frame, and rooms fill in nearest first. Smaller cities do not use them.
- New optional setting Play / SampleSideJobCandidates (off): in very big cities the side job check looks through a random sample of citizens instead of the whole city.
- New optional setting Play / LampShadowDistanceScale (1 keeps the game's look).
- New measuring mode (Measure / Enabled, off): times each load stage and the busiest parts of the game, and writes reports to BepInEx/SoDLoadFix. With it on, Quick Menu has two entries, write report and fixes on/off, and Ctrl+Shift+X and Ctrl+Shift+Z do the same. Reports are written on their own once the city has settled after arrival, 10 minutes after arrival, on leaving the city and on closing the game, and report-latest.txt is kept up to date every 2.5 minutes.
- If SOD Performance is installed, the overlapping fixes switch off.
1.1.1
- Fixed: after the first load of a city, opening some doors did not draw the room behind them (missing walls, a black or empty space). The remembered room data now keeps everything the game uses when a door opens. Your first load of each city after updating builds this data again, so it takes as long as a first load.
1.1.0
- The city settles sooner after you arrive: on an 8x8 city, smooth play starts about 35 seconds earlier and the longest freeze right after arriving dropped from 27 to 20 seconds. New cities also run smoothly about a minute sooner after generating.
- New setting Fixes / RememberRepeatChecks, on by default.
- The README now explains what to expect from generating a new city, with very large city numbers.
1.0.0
- First release. City loads, saves and new city generation all take less time, and the bigger the city, the more you save.

