Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

pcall in RenderStepped causes memory leak/increase?

Sounds dumb of me but after running this loop, the memory does increase gives me concerns. I'm trying to ensure this code does not output errors or to retry the code every render. Should I pcall without local s, e or not at all?

RService.RenderStepped:Connect(function()
    local s, e = pcall(function()
        -- something
    end)
    if not s then
        print(e)
    end
end)

1 answer

it does not create a Memory leak it increases alittle then it somewhat hit a cap and stopped increasing

This discussion is preserved as it was. New answers, comments, and votes are closed.