Mining Game Ping Spikes

I’ve been trying to optimize my mining game with no luck.
It’s a sandbox mining game where you can mine blocks quickly, with different pickaxes mining blocks with different abilities, some better than others.
The powerful ones have been mining lots of blocks at once, which is intended, but have been causing large ping spikes because of this.
I’m not sure as to how to lower the data received when these happen. Any advice?

just slow the mining speed to the point where it mines 2 blocks every 1.5 seconds instead of 1 if that make sense

That would remove the point in having a better mining tool or choppy gameplay if your on about changing the remotes.

1 are you firing the server per block effected by the player.

2 is the lag effecting everything or just functions connected to the mining

Just decrease the amount of times you ping you the server.

@AlbertSeir The point is that the mining speed is instant; which doesn’t naturally cause lag by itself.
The lag is to do with ping; large amounts of blocks are sent in each packet, causing hundreds of kB/s to be sent every time an ability that mines lots of blocks is triggered.

So, then it sounds like you figured it out?

No? I want to know a method, if possible, to reduce the ping

Well, what data are you sending? If you can reduce how much you send, your lag problems may decrease

1 Like

If you already understand the cause or the lag then you can reduce the cause by reducing the data sent as well as the frequency in some situations. Blocks breaking instantly can be done on the client before the server which means that you can prioritise server updates to players that are near other players.