macOS/arm64: turn off JIT compilation by default.

This commit is contained in:
Sasha Szpakowski
2023-11-26 17:11:34 -04:00
parent aa0a0bdf7a
commit d21c9cb6de
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -62,6 +62,10 @@ if jit.arch == "arm64" then
jit.opt.start("sizemcode=128")
for i=1, 100 do end
-- Actually just turn the whole thing off for arm64. It's very hard to get
-- reliable performance in non-trivial games even with the above workaround.
jit.off()
else
-- Somewhat arbitrary value (>= the default).
jit.opt.start("sizemcode=128")