Skip to content

Only invoke the Lua API for mobj hooks that need it

LJ Sonic requested to merge skip-unused-mobj-hooks into next

This fixes a performance issue where, as long as at least one mobj hook of a certain type was added, the game would make 3 unneeded calls to the Lua API for every mobjs in the map, every tick.

Merge request reports

Loading