● Based on my investigation, here's an analysis of migrating to LuaJIT:
Current State
Lua 5.3.6 bundled in src/lua/, using Sol2 v3.3.0 bindings. Lua is exclusively for modding API (22 hooks like on_game_load, on_shoot, etc.) - NOT core game logic. ~5k lines of mod scripts exist.
LuaJIT Benefits
Performance: LuaJIT is 3-5x faster than Lua 5.3 in most benchmarks:
- DNS benchmark: LuaJIT 2.1 (0.81s) vs Lua 5.4.2 (3.69s)