Merge pull request #1038 from takase1121/PR/scale-step-gc

run GC between scale to prevent ram from exploding
This commit is contained in:
Jefferson González 2022-06-16 03:04:53 -04:00 committed by GitHub
commit 3dadbd3a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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