This just manually inlines GetComponentCache and its helper method to eliminate allocation. In my tests in free H, it reduces allocation by about 300KiB/s @ 60Hz.
Ideally I would patch GetComponentCache directly, but Harmony doesn't seem to let me patch a generic method without specializing it first.
This just manually inlines
GetComponentCache
and its helper method to eliminate allocation. In my tests in free H, it reduces allocation by about 300KiB/s @ 60Hz.Ideally I would patch
GetComponentCache
directly, but Harmony doesn't seem to let me patch a generic method without specializing it first.