Remove garbage collection.

This commit is contained in:
Duane 2016-07-31 03:30:02 -05:00
parent aefc390cc9
commit 92bb8a6c8e

View file

@ -485,18 +485,9 @@ end
local function pgenerate(...)
if math.floor(collectgarbage("count")/1024) > 400 then
print("Fun Caves: Manually collecting garbage...")
collectgarbage("collect")
-- Slow down to allow time to free memory.
local clock = os.clock
local t0 = clock()
while clock() - t0 <= 2 do end
end
local status, err = pcall(generate, ...)
if not status then
print('Fun Caves: Could not generate terrain:')
print(dump(err))
end
end