vgstation-coders / vgstation13

Butts
GNU General Public License v3.0
264 stars 541 forks source link

Improved Burnable Subsystem Refactor #36556

Closed west3436 closed 3 months ago

west3436 commented 3 months ago

What this does

Reduces burnable subsystem cost by 90% (independent of #36554), greatly improving performance related to autoignition.

Why it's good

When first introduced, the burnable subsystem iterated through every single flammable atom in the world, which is obviously an expensive operation. This PR instead iterates through any zones about 500K before checking flammable atoms within the affected zone. Burnable cost now continuously runs below its budget, removing any stuttering one may have experienced previously.

Changelog

:cl: