-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix StockGenerator_Clothes patch performance
The current StockGenerator_Clothes_HandlesThingDef_Patch implementation imposes a prohibitive performance overhead when a trader is active on the map due to it iterating across the entire def database every time in a high call frequency patch. As a fix, cache the set of defs to be matched at the patching stage. This patch was actually a no-op because __result was not declared as a reference parameter, so the original return value wouldn't have been modified, so fix that as well. Also make the build more portable by converting some reference path to relative ones so that they do not assume a particular install directory for the game.
- Loading branch information
1 parent
6032f36
commit 10342a4
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters