RimWorld-LWM.DeepStorage icon indicating copy to clipboard operation
RimWorld-LWM.DeepStorage copied to clipboard

Rimworld.StoreUtility.NoStorageBlockersIn - Slamming FPS

Open docssy opened this issue 2 years ago • 4 comments

Hiya LWM,

I'm doing some stress testing and based on the picture, you can see a whole bunch of performance challenges (on purpose). Anyways, with your storage shelves the game is very much stuttering inside [NoStorageBlockersIn]. I'm seeing about 250,000 calls per second.

PUAH+ / While You Are Up I'm assuming is depending on [NoStorageBlockersIn] to complete as well.

image

Is there any way to refine this code or consider holding a cache of storage and their blockers/contents?

Anything that reduces performance hits on a popular mod is appreciated!

docssy avatar Jun 19 '22 18:06 docssy

image 1 second-ish calls

docssy avatar Jun 19 '22 18:06 docssy

image Finally, the stack

docssy avatar Jun 19 '22 18:06 docssy

image

And inside [NoStorageBlocksIn]. Note the 2-3ish ms for everything in here, compared to the 1500ms spikes. Something is not being very productive

docssy avatar Jun 19 '22 18:06 docssy

I've got the exact same problem. This is also taking up 1500ms and slamming my FPS

LytsePier avatar Jun 21 '22 19:06 LytsePier