graywolf336 / BestViewDistance

A view distance plugin for Paper. Created to boost ping/tps and view distance.
1 stars 0 forks source link

Delay ping check while chunk expansion is incrementing. #8

Open mibby opened 5 years ago

mibby commented 5 years ago

Paper dev 624 (Spigot 1.13.2) BestViewDistance dev 18

Config https://paste.ubuntu.com/p/qSqcHh6KtJ/

Spigot View Distance Setting: 4

When loading into the server for the first time, I noticed players have an elevated ping when receiving packets for scoreboards, groups, permissions, server resource packs, etc. I also noticed when teleporting around across worlds, the ping spikes to a high number until all chunks have loaded.

i.e. 99 ping normally, 800 ping spike when chunks are loading after teleporting.

Would it be possible to delay ping checks during chunk sending / expansion to prevent reduction while loading? Or get an average player ping over a period of time to prevent spiked levels from affecting reduction indices?

graywolf336 commented 5 years ago

So, add an option in the configuration to delay checking a player's ping and only after that amount of time do we start checking. Should this option be generic and overall or be configurable per event? In my opinion, overall makes sense so that it's easier for the server administrator to configure.

mibby commented 5 years ago

I'm fine with overall but it's probably best to add the check in a few places so ping isn't checked while chunks are being loaded. As when you begin loading 16/32 chunks all at once, the ping spikes quite high.