Is there a broadcaster limit?
-
Is there a limit on the number of broadcasters I can use in my project, or will I notice any side effects from using lots (potentially 100s) of them?
-
@d-healey No, the broadcaster map might become a mess, but as long as it's not visible, it won't update.
Why would you create 100s of them? I'm using them in a super complex project and I have about 30 broadcasters.
-
Proof:
const var list = []; const var HUNDREDS = 101; for(i = 0; i < HUNDREDS; i++) { list.push(Engine.createBroadcaster({ "id": "broadcaster" + (i+1), "args": ["someIndex"] })); }
-
@Christoph-Hart said in Is there a broadcaster limit?:
Why would you create 100s of them? I'm using them in a super complex project and I have about 30 broadcasters.
It's for my downloader app. I wanted to add a broadcaster for each product to track its download progress. Currently I only have a few products but I'm dreaming big :)
-
@d-healey ah I see. Yes that should be fine and as long as they are not busy and idleing around, they shouldn‘t consume an unreasonable amount of resources.