New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LuaJIT JIT performance issues on Apple Silicon Macs #14611
Comments
Do we have any known concrete effects in the context of Minetest?
That sounds unlikely given the discussion in the LuaJIT issue and that the relevant jump range constant is arch-dependent, not OS-dependent. |
from irc:
|
To be clear I am not against adding code like suggested in the OP post. But I'd like a bit more data first. |
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: