No Laggy Bed

If you liked this item, please rate it up on Steam Workshop page.

Author: telardo

Last revision: 13 Apr, 2024 at 22:05 UTC (5)

File size: 69.38 KB

On Steam Workshop

Description:

(1.3) Fix the fps drop when you select a bed or workbench.
(1.3 Experimental) Fix the fps drop when you open the Needs Tab of a pawn.
(1.4-1.5) Optimize Thoughts listing in the Needs Tab of a pawn.

Details:
  • In 1.4, the devs fixed the bug for beds and workbenchs. All my fix is no longer needed and removed in 1.4.
  • In 1.5, the devs optimized part of the Needs Tab (when the game is paused). But the thoughts listing is untouched and still inefficient.

Dumb numbers from my profiling:

Combo
Needs
Thoughts
Overall overhead per update

Vanilla
0.828
0.747
1.578

Vanilla+This
0.790
0.408
1.202

Vanilla+PO
0.313
0.724
1.041

Vanilla+PO+This
0.307
0.435
0.745

All tested with same pawn with 15-ish thoughts. Numbers are in ms. PO means Performance Optimizer, which caches those Needs. Roughly, it’s 30% faster.

Compatibilities:
  • This mod is purely UI optimization. It does nothing when you don’t open the Needs Tab.
  • Can be safely removed from or added to a save.