mojira.dev
MC-238793

Excessive chunks sent to client with low render distance

If a client with a lower render distance (say 2chunks) connects to a server with a higher render distance (say 32chunks), the server will send the entire 32chunk render distance to the client. Even tho the client is only at 2chunks.

This causes an excessive amount of wasted bandwidth, cpu time and lag, then to only be discarded on the client.

People with slower internet connections will often Time out before all the chunks are sent to the client. Even if they are able to play fine once connected.

Can cause fps lag on lower end clients

The client already sends its render distance to the server, so only server side changes need to be implemented

An optional feature to add, would be to limit the amount of chunk packets sent to the client based on the client's (and server's) max bandwidth/ping

Comments 1

Confirmed in 1.19. The proposed solution will also fix at least some of the problems of MC-228420.

RedCMD

slicedlime

Confirmed

Platform

Important

Networking

1.17.1, 21w40a, 1.19

23w31a

Retrieved