Rim-Of-Madness-Team / Rim-of-Madness---Vampires

Adds Vampires to RimWorld.
8 stars 6 forks source link

Lag spikes from Vampire job searches #44

Open jecrell opened 6 years ago

jecrell commented 6 years ago

Issue Vampires will cause lag spikes when searching for new jobs to get. Proposed solution This is a CPU issue and depends on different hardware~~ This is due to their smart AI to check their next task's viability to perform based on daylight. This kind of optimization could take a while. In the meantime, I think the code could be disabled with a bit of a toggle button on the vampire character screen. If a character has "dumb AI" mode toggled, they might use the older AI pathfinding for sunlight code, or if they have "no sunlight AI" mode toggled, they would just not bother pathing for sunlight and completely save CPU.