边缘世界 RimWorld

边缘世界 RimWorld

Yayo's Combat 3 (1.1-1.2)
Comunista 2020 年 10 月 13 日 上午 7:30
Lag spike bug reporting
Hey yayo I found a problem that might be related to the mod, I'm gonna describe it

I found out when an android (from android tiers) mod (a t1 android, but that might not be relevant) is equiped with a machine pistol, without ammo, and you draft that android, the fps drops to like 1, making the game unplayable. Using performance analyzer I found out these 3 lines spiking to 400ms:

Void Postfix(Verse.Pawn) yayoCombat.patch_Pawn_TickRare

Void Postfix(Boolean ByRef, Verse.Pawn, Verse.LocalTargetInfo) TerrainMovement.ReservationManager_Reservation_CanReserve_ReachCheckPatch

Void Postfix(Boolean ByRef, Verse.Region ByRef, Verse.TraverseParms, Boolean) TerrainMovement.TraverseParms_Allow_Movement_Restrictions

I tested picking the unloaded machine pistol with other, normal human pawns, and there was no lag spike, so it must be a problem with Yayo+AndroidTiers compatibility. I don't know if it is something that has to be fixed on Yayo mod or AndroidTiers mod, but I will leave this here and on Android Tiers page in case anyone want to look into it.