sumghai / MedPod

Advanced regenerative medical beds for RimWorld
Other
14 stars 15 forks source link

FPS drop when running at high game speeds, multiple MedPods or a large number of hediffs #3

Closed sumghai closed 4 years ago

sumghai commented 4 years ago

While a MedPod is running a diagnosis and treatment cycle, if the game speed is increased to 3x or above, the frame rate often drops from 60 to ~15 FPS. The effect is more apparent if multiple MedPods are running, or if a patient has a large number of hediffs.

Perhaps Building_BedMedPod's Tick() method needs to be optimized.

sumghai commented 4 years ago

Updated issue title to include other situations impacting performance (e.g. multiple MedPods running concurrently, or a patient with a large number of hediffs).

sumghai commented 4 years ago

f7bddc2 should hopefully fix the issue. Waiting on feedback from beta testers.

sumghai commented 4 years ago

Stormtail (via Discord) reports that the lag is completely gone in the dev build.

Waiting for more feedback from other beta testers.