run GC between scale to prevent ram from exploding

This commit is contained in:
takase1121 2022-06-15 22:56:52 +08:00
parent 2d412ef64a
commit 42e0028f1c
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B
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