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()
|
local function inc_scale()
|
||||||
set_scale(current_scale + scale_steps)
|
set_scale(current_scale + scale_steps)
|
||||||
|
collectgarbage "step"
|
||||||
end
|
end
|
||||||
|
|
||||||
local function dec_scale()
|
local function dec_scale()
|
||||||
set_scale(current_scale - scale_steps)
|
set_scale(current_scale - scale_steps)
|
||||||
|
collectgarbage "step"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue