Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

pcall in RenderStepped causes memory leak/increase?

Asked by
TechModel 118
2 years ago
Edited 2 years ago

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

Log in to vote
0
Answered by
Puppynniko 1059 Moderation Voter
2 years ago

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

Ad

Answer this question