Merge pull request #1038 from takase1121/PR/scale-step-gc
run GC between scale to prevent ram from exploding
This commit is contained in:
commit
3dadbd3a49
|
@ -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