run GC between scale to prevent ram from exploding
This commit is contained in:
parent
2d412ef64a
commit
42e0028f1c
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue