From 0da49d98bae9cc408125ee38f5d6a8a2ac39d276 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Thu, 23 Oct 2025 05:23:48 +1100 Subject: [PATCH] JIT 2.1 Fixes Launch options are required so JIT 2.1 runs at the same sped as the previous JIT version we were using The change in PassiveSpec is required cause we are now not reliably processing the changed stats on the changed attribute nodes due to the way JIT 2.1 handles pairs --- src/Classes/PassiveSpec.lua | 1 + src/Launch.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Classes/PassiveSpec.lua b/src/Classes/PassiveSpec.lua index b8003ce72d..ae0efa0307 100644 --- a/src/Classes/PassiveSpec.lua +++ b/src/Classes/PassiveSpec.lua @@ -2085,6 +2085,7 @@ function PassiveSpecClass:SwitchAttributeNode(nodeId, attributeIndex) local option = newNode.options[attributeIndex] self:ReplaceNode(newNode, option) + self.tree:ProcessStats(newNode) self.hashOverrides[nodeId] = newNode end diff --git a/src/Launch.lua b/src/Launch.lua index 505a42b9e5..ff41211e7f 100644 --- a/src/Launch.lua +++ b/src/Launch.lua @@ -14,6 +14,8 @@ ConExecute("set vid_resizable 3") launch = { } SetMainObject(launch) +jit.opt.start('maxtrace=4000','maxmcode=8192') +collectgarbage("setpause", 400) function launch:OnInit() self.devMode = false