Skip to content

Commit

Permalink
macOS/arm64: turn off JIT compilation by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Nov 26, 2023
1 parent aa0a0bd commit d21c9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Released: N/A
* Added "LÖVE Loader" launcher on Android for easier loading of .love files.

* Changed iOS game selector to alphabetically sort the list of .love files.
* Changed JIT compilation on macOS arm64 (Apple Silicon) to be off by default, since performance and available JIT memory isn't reliable.

* Fixed inconsistent and buggy behaviour of 'pairs' by updating LuaJIT.
* Fixed "unexpected alignment" errors when running love on some 32 bit Linux systems.
Expand Down
4 changes: 4 additions & 0 deletions src/modules/love/jitsetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d21c9cb

Please sign in to comment.