Only send the newest buffered RPC.

Options
Hello :)

I am making a a system that lets players choose their own visuals (like in RecRoom, for example.) I have a scriptable object which holds all the prefabs with a string ID. So when a player has chosen a visual, that client sends a buffered RPC to the other clients to spawn the correct visual. That's all working, but my question is this:
Do those buffered RPCs all stack up? So a player chooses a new visual 50 times. Do new players get the call to spawn a certain visual 50 times?
Because I would only need to send the latest (newest) RPC, all the older visual choices do not matter.

So if the RPCs do stack, is there a way to only send the newest RPC. Or should I not be using RPCs at all? (Is there a better way of doing this?)

Thanks for your time!

Comments