Модуль:Entity Sprite: различия между версиями

Нет описания правки
Нет описания правки
Строка 29: Строка 29:
      
      
     local result = {}
     local result = {}
    local count = 0
     for _, entry in ipairs(data) do
     for _, entry in ipairs(data) do
         local template = generateTemplate(entry)
         local template = generateTemplate(entry)
         if template then
         if template then
             table.insert(result, template)
             table.insert(result, template)
        end
        count = count + 1
        if count % 1000 == 0 then
            collectgarbage("collect")
         end
         end
     end
     end
Строка 43: Строка 38:
     return table.concat(result)
     return table.concat(result)
end
end
collectgarbage("setpause", 100)
collectgarbage("setstepmul", 5000)


return p
return p