Commit Graph

62 Commits

Author SHA1 Message Date
HRiggs e766ac833c Constrain reflection fast paths and preserve 1.6 tick behavior 2026-10-02 14:37:44 -04:00
HRiggs e1a79fc0b0 update authors and required mods 2026-10-02 12:31:16 -04:00
HRiggs ff3119a810 Cache no-op component tick lists in RimWorld 1.6 2026-10-02 11:28:13 -04:00
HRiggs 9d31b36805 Reduce repeated ability list reads during pawn ticks 2026-10-02 04:09:19 -04:00
HRiggs 227dcd173f Stabilize RimWorld 1.6 caches and tick optimizations 2026-10-02 04:00:27 -04:00
HRiggs 3199c1a85e Merge pull request '1.6 to main' (#1) from rimworld-1.6 into main
Reviewed-on: #1
2026-10-02 06:26:21 +00:00
localavaster cd311df5ae Update README.md 2026-04-18 15:19:55 -06:00
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 aba7b38b37 rebuild dlls 2026-04-14 01:30:39 -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
bbradson ea3076e051 Merge pull request #75 from NachoToast/main
Fix duplicate deadlife dust label at the bottom left and in the add gas menu
2025-03-22 16:15:39 +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 11b5ea1670 fix deadlife dust label 2025-03-21 17:23:50 +13:00
NachoToast c93f0f9c27 increase start index in custom gas drawing loop 2025-03-19 16:17:25 +13:00
bbradson 4b44be8f83 Merge pull request #69 from Foxtr0t1337/patch1
Fix for hauling to armor racks, graves and sarcophagi
2024-12-28 23:07:50 +01:00
Foxtr0t1337 07c6f44a2d Merge pull request #1 from Foxtr0t1337/test1
Don't format too much.
2024-12-28 09:02:44 +08: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 4fcf7b3205 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 release 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:23:34 +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
bbradson 5e1bee8b6c Merge pull request #68 from missionz3r0/Toil_Bed_optimization
Toil bed optimization
2024-12-23 02:20:23 +01:00
bbradson 43bd02d2c6 Merge pull request #67 from missionz3r0/fix_building
Changes to allow building
2024-12-23 02:15:16 +01: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
bbradson 627d92834b Merge pull request #53 from Foxtr0t1337/main
Fix game freeze caused by shelf linking (and renaming)
2024-06-17 00:24:10 +02:00
Foxtr0t1337 407616ed8a Update binary 2024-06-16 04:10:25 +08: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