From 8d317649e10c3abd6122f13f2bd00e4aa05388e7 Mon Sep 17 00:00:00 2001 From: Vurv <56230599+Vurv78@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:18:20 -0800 Subject: [PATCH] Decrease prf cost, clarify change 15 ops to call lambda -> 10 ops --- lua/entities/gmod_wire_expression2/base/compiler.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/entities/gmod_wire_expression2/base/compiler.lua b/lua/entities/gmod_wire_expression2/base/compiler.lua index d76288a9fe..3db0047990 100644 --- a/lua/entities/gmod_wire_expression2/base/compiler.lua +++ b/lua/entities/gmod_wire_expression2/base/compiler.lua @@ -1440,7 +1440,9 @@ local CompileVisitors = { function(args) local s_scopes, s_scope, s_scopeid = state.Scopes, state.Scope, state.ScopeID - state.prf = state.prf + 15 + -- Not using `self.scope.data.ops` in order to add prf when builtin functions call lambdas. + -- This behavior may change. + state.prf = state.prf + 10 local scope = { vclk = {} } state.Scopes = inherited_scopes