Commit Graph

44 Commits

Author SHA1 Message Date
localavaster 7d96ecdb1d add comp tick, needs tracker and pawn rendering optimizations, cache more dates, fix reflection patches, default to disabled for texture atlas patch 2026-04-18 15:18:26 -06:00
localavaster 1acf3ce319 use reference identity for Thing and fix ListerBuildings type cache fallbacks, possibly fixed rgctx bug 2026-04-15 10:10:44 -06:00
localavaster c75f383020 fix jobdriver throwing when constructing 2026-04-14 00:23:44 -06:00
localavaster 35187cf2d2 fix crashes, temp disable reflection caching, possibly reduce optimization in some areas, likely break 1.5 2026-04-14 00:12:50 -06:00
localavaster 9821c68999 build lookup for running mod classes 2026-04-11 08:35:38 -06:00
localavaster c020968638 add 1.6 support and fix prepatch regressions 2026-04-07 04:02:57 -06:00
bbradson a99972001e Update binaries and config files 2025-03-22 16:17:56 +01:00
NachoToast 6e43ee479f fix indentation 2025-03-21 17:29:48 +13:00
NachoToast d0036e46a4 fix deadlife dust display twice in 'add gas' debug menu 2025-03-21 17:25:15 +13:00
NachoToast 083d73d31d add version check to patch 2025-03-21 17:24:52 +13:00
NachoToast e3c5e0dc85 add deadlife dust to GasDef.OfGasType method 2025-03-21 17:24:21 +13:00
NachoToast c93f0f9c27 increase start index in custom gas drawing loop 2025-03-19 16:17:25 +13:00
Foxtr0t1337 b7e44bc4cc Don't format too much. 2024-12-28 09:00:44 +08:00
Foxtr0t1337 eda1f302b7 Try to fix grave/sarcophagus etc. not working
1. Added new prepatch `TryFindBestBetterStorageForPatch`
2. Rebuilt for realse so that changes take effect

`TryFindBestBetterStoreCellForPatch` had been deciding which item should be removed from `listerHaulables`, which improves performance.
But it had been checking `SlotGroup`s only.
Patching `TryFindBestBetterStorageForPatch` to cancel the removal if the best storage is non-cell could solve the issue of grave/armor rack etc. not working.

Tried several things. Nothing broke, and it solved said problem.
2024-12-28 08:20:29 +08:00
Foxtr0t1337 3fe7b864b9 Add a condition so that the "flag" is only checked when there can be "flag", which is when TryFindBestBetterStoreCellForPatch is enabled. 2024-12-27 22:55:19 +08:00
Foxtr0t1337 d7c937798a Try to fix grave/sarcophagus etc. not working
1. Added new prepatch `TryFindBestBetterStorageForPatch`
2. Moved `TryRemoveFromListerHaulables` from `TryFindBestBetterStoreCellFor` to the new prepatch
3. Rebuilt for realse so that changes take effect

`TryFindBestBetterStoreCellForPatch` had been deciding which item should be removed from `listerHaulables`, which improves performance.
But it had been checking `SlotGroup`s only.
Patching `TryFindBestBetterStorageForPatch` and checking both Cell and NonCell achieves the same thing, and could solve the issue of grave/armor rack etc. not working.

Tried several things. Nothing broke, and it solved said problem.
2024-12-27 20:07:40 +08:00
missionz3r0 92beae4e9a RimWorld.Toils_Bed:FailOnBedNoLongerUseable optimization to skip calls to BedNoLongerUseable with a tick offset 2024-12-22 20:07:08 -05:00
missionz3r0 0fd4686b18 'System.Runtime.CompilerServices.Unsafe' versioned to '6.0.*' due to incompatibility with '6.1' 2024-12-22 17:39:02 -05:00
missionz3r0 a26870e3da rename 'Directory.Build.Props' to 'Directory.Build.props' 2024-12-22 17:37:47 -05:00
Foxtr0t1337 f0c486edf4 Try to fix game hang caused by shelf linking.
Fixing an infinite loop caused by unchecked cache invalidation.

Sometime when you link shelves, a storageGroup in cache will not null, but with no SpawnedMember.

If unchecked, it will cause groupsOfPriorityCount to decrease by -1, which is a infinite loop.

This fix will FixCache when a group have no member.
2024-06-16 04:07:27 +08:00
bbradson 79e8b5f70d Fixed rare TryFindBestBetterStoreCellFor errors, added better exception handling for drawing errors thrown by other mods
Those log messages now include things and the position where drawing fails
Plant printing was slightly improved further too, correctly handling theoretical hydroponics of sizes above 20 now
2024-04-30 20:37:18 +02:00
bbradson 1ca55fc7b8 Fixed plants clipping against vertical hydroponics, clarified fishery version message further 2024-04-28 23:05:56 +02:00
bbradson 052425a1f0 Fixed bug in Listers.Things causing slowdowns and rarely errors in large colonies
Requires updated Fishery
2024-04-28 20:19:36 +02:00
bbradson 91d664ddb7 Fix for clipping issues between plants and hydroponics, clarified harmony log message 2024-04-28 17:21:42 +02:00
bbradson d34bc77869 1.5, added stuff, fixed stuff
- mod icon
- fixes for new vanilla clipping issues
- GenClosest optimization improving repairing, wardening, tending jobs
- caching for new ListerBuildings methods
- DynamicDrawManager single threading
- Type.GetFields caching
- StatParts analyzer category
- removed duplicate steam warning and optionally window
- added exception handling for debug menu, incidentworker, Graphic_Multi, InitializeComps, making all those now log what mod broke and not cause black screens or whatever
2024-04-27 22:31:07 +02:00
bbradson be3dae46bb Added stat caching, fixed all the bugs
Added RitualObligationTriggers analyzer category,
Fixed defs from other mods with broken market value breaking fish's storage patches,
Fixed storage caches not updating for quality, rotting and similar changes to stored things,
Fixed storage caches not updating capacity when reinstalling storage,
Fixed prison labor compatibility,
Improved multiplayer compatibility,
Fixed ideology style dominance and altar sharing patches throwing errors instead of defaulting to disabled when not having ideology,
Fixed compatibility with RIMMSqol's world pawn GC patch by disabling that patch,
Fixed rare threading issues throwing errors on startup
2024-03-10 20:05:24 +01:00
bbradson a4ee95fde1 Additional safety checks in StoreUtilityPrepatches:TryFindBestBetterStoreCellFor for better mod compatibility
It was reported to be throwing index out of range exceptions, with unknown cause
2024-02-02 14:37:52 +01:00
bbradson d394d31f05 Fix for a conflicting patch with one or more of RimCities, Common Sense and Simple Sidearms 2024-02-01 23:00:04 +01:00
bbradson 949bde76ce Mainly more hauling optimizations, utilizing linked storage groups
This also adds an experimental, usually slower, threaded gas grid mode and implements a workaround for the whole mod and game failing to start when opening prepatcher's mod manager with unfortunate timing
2024-02-01 19:57:50 +01:00
bbradson 20aebe4e83 Fix compatibility with Rimfactory's digital storage
760/768 being the limit and errors getting thrown when randomly overhauling are issues PRF independently has, with nothing else present too
2024-01-27 12:48:22 +01:00
bbradson c8b764de68 Added gas grid optimization, various despawn optimizations, new hauling optimizations utilizing events and regions, bugfixes for old patches and for vanilla functions too, as well as smaller additions. 1.3 files removed. 2024-01-27 10:24:24 +01:00
bradson 0247ad59a1 Fix CopyAllowancesFrom patch for CE Custom Ammo compatibility
Thanks to @Epicguru for spotting the erroneous patch
2023-12-12 11:39:24 +01:00
bbradson 3d8c8e4d29 Fixes for rare texture loading issues
And an attempt to try prevent rare reported issues with prepatch loading
2023-06-13 19:43:02 +02:00
bbradson 76c0f7a371 Bugfixes for world object caches not clearing when reloading without restart and retextures of a small number of things like fire not working 2023-06-08 18:57:10 +02:00
bbradson d7ff5b96cd Fix for Same Room Lovin' compatibility 2023-06-05 05:17:35 +02:00
bbradson 365d9fd3f3 Bugfix for work types that pawns are incapable of getting reset when reloading a save 2023-06-04 18:01:30 +02:00
bbradson ca9321add8 Lots of new optimizations utilizing prepatcher
To start, this mod now requires Prepatcher and Fishery.
New optimizations include: gene ticking improvements, world object improvements, hediff optimizations, world pawn gc optimizations, better mothballing, dds support, ContentFinder caching, additions and changes to reflection caching, as well as various other additions. Multiplayer support has been improved too, but should be considered highly experimental. The WorkGiver_DoBill bug is fixed in this build. Multiple patches aiming to improve RimWorld's load time have been added too.
2023-06-03 20:24:38 +02:00
bbradson cb0a407425 actual fix for mech gestators this time 2022-10-27 23:27:39 +02:00
bbradson cdf34da442 Fix for mech gestators not working 2022-10-27 22:38:13 +02:00
bbradson 467102dd52 Haulables fix, and Mergeables fix #3 2022-10-27 01:34:44 +02:00
bbradson fbe078f389 another fix for mergeables 2022-10-26 20:37:29 +02:00
bbradson 407e09e474 Fix for an error about mergeables 2022-10-26 20:13:39 +02:00
bbradson 39b53f2713 fix for butchering and stonecutting not working 2022-10-25 23:02:55 +02:00
bbradson 2efa8e466c Performance Fish 2022-10-24 18:24:02 +02:00