Skip to content

Commit

Permalink
run GC between scale to prevent ram from exploding
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Nov 14, 2022
1 parent 55d10e6 commit 06aafae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/plugins/scale.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ end

local function inc_scale()
set_scale(current_scale + scale_steps)
collectgarbage "step"
end

local function dec_scale()
set_scale(current_scale - scale_steps)
collectgarbage "step"
end


Expand Down

0 comments on commit 06aafae

Please sign in to comment.