I am creating a system where a value on the server is rapidly changing and I would like to send this information to the client, heartbeat has a debounce of 0.1 seconds.
Is it better for performance to send a remoteEvent every update or to create a stored numbervalue that the server updates and client will reference. This connection is capable of running multiple times at the same time.
What’s the use case? Are you doing a timer?
I would say that a NumberValue in ReplicatedStorage with clients listening for .Changed events would be fine.
Its an NPC detection meter that fills up when youre in their line of sight. So it will rapidly increase while in sight and decrease when not, and each player in sight will get their own meter, but .changed seems to be best, I just wanted to see if someone had a good reason to use remote events.