Does having many connections for the same event impact performance?

For example, will having many game.Players.PlayerAdded connections in various different scripts impact performance?

Besides organisation and such, are there any negatives to doing this performance-wise?

From my humble point of view it depends on the case if it is an event which is on the client side only affects the client but if it is on the server side maybe a little If they are all clinging to the same event or it affects a lot I think although wait a while for a professional to tell you something

Does using your PC impact performance?

In general, formatting and logic beats programming in machine code. With good formatting and logic comes program efficiency.

I would imagine that roblox calls these connections like this:

for _, connection in pairs(getconnections(RBXScriptSignal)) do
    task.spawn(function()
        connection:Invoke(...)
    end)
end

So, with more connections, this for loop would take a millisecond or two longer. And with a lot more, maybe tens of milliseconds depending on how much ‘a lot’ means.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.