Performance Checking/High Ping

I was working on a new weapon system to use at my games but when I came to testing, I noticed differences in server lag/ping. (I expect lag due to people staying home due to COVID-19). I was wondering in my scripts how could I test if its scripting thats causing server lag or if its high internet traffic?

Any help is appreciated.

Could be caused by extensively calling remote events over and over, which I assume are used quite a lot in a weapon system. It’s recommended to optimize the usage of remote events to the best of your ability since calling a lot at a high rate could cause latency in servers.

You are correct I do use a lot of remotes, what would be the best way to use remotes, use less? or use less firing of them?

Like for replicating from client to server, instead of constantly updating the position, only update it every 0.1 (probably less) of a second and interpolating between the difference- less calling and not really affecting the visual performance.

1 Like