Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is the best way for performance wise? [closed]

Asked by
Divistern 127
5 years ago

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.

Closed as Primarily Opinion-Based by User#24403

This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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

Ad