well the idea of making each troop which we would have around 120 fire an event each time they attack is not that good i think it would cause a lot of lag j was thibking about parelle lua what do u think bout this approach
Clarifying: I meant one module per unit class; not per unit.
Using parallel lua per unit may cause a lot of performance issues
And even if you have parallel lua per unit, that won’t stop 120 units firing events every time they attack,.
The way it currently is right now for us, is quite performant so far.
I’d advise not using parallel EACH unit, that sounds like a performance nightmare
just to clarify how many remotes do u have for the units like (number of troop)/(number of remotes)
Every unit uses the same remotes to communicate with server and client usually, There are a few exceptions here and there but usually the same ones are being used.
so in games most dev let the token be grabbed in local scripts and the activation of the ability is on the server script righy
besides are u using coroutines/task.spawn in ur game?
I don’t really understand what you mean here, but you can imagine the remote events as a delivery man, it delivers packets from server and client to server and client. So they are not one time use.
also yes, i do use it wherever required
what i meam is these troops summon tokens to be picked by their player in order for the ability to work
how would handle this