LuaJIT JIT performance issues on Apple Silicon Macs #14611
Labels
Action / change needed
Code still needs changes (PR) / more information requested (Issues)
macOS
Performance
@ Script API
Opening an issue for this since it's been brought up multiple times on Discord/IRC but I believe nobody has opened an issue for it yet.
On ARM-based Macs there appears to be severe performance issues with running Lua code when JIT is enabled. This forum post from slime73 over at LÖVE describes the underlying issue in more detail and links to the relevant LuaJIT issue. IIRC someone on the Discord mentioned that the performance issues do not occur on Asahi Linux, so it's only an issue when running macOS.
One possible solution would be to disable the jit in builtin and fallback to LuaJIT's interpreter, e.g. something like:
It will be slower than the theoretical LuaJIT JIT performance but should still be faster than the PUC Lua runtime. This could alternatively also be available as a third-party mod if not put in builtin.
The text was updated successfully, but these errors were encountered: