Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the best way for performance wise?

So i've been having performance problems with RemoteEvents, so i want to learn more on how to make the game run faster, And reduce latency.

If you could help me with this, then it will be appreciated.

1 answer

✓ Accepted answer

Filtering is a really bad way to keep network performance at it's best, but hey, it's roblox and the developers in charge of internal security are about as competent as 5-year-olds with quantum physics, so let's just remove the option entirely.

The key is that remote events are always delayed by a bit, this effect becomes even worse with more of them firing at the same time, so it's crucial to keep their spam to a minimum.

For example, for automatic weapons, do not fire an event for every, say, 0.5 seconds that the client has held his mouse button 1 down, that would not only wreck performance but that would also be extremely stupid security-wise considering an exploit would just spam the hell out of it. The solution to this is to fire an event every time a client starts holding their mouse down and then stops, this greatly increases available remote bandwidth, allows for a much greater improvement in actual performance and makes it harder for skids to effectively create scripts that make your guns fire at 99999999 rounds per second :P

This discussion is preserved as it was. New answers, comments, and votes are closed.