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:
tweak: Refactored the burnable subsystem to eliminate lag.
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: