Sodium

Sodium

35M Downloads

Extend maximum render distance past 32 chunks

realchonk opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.
I tried extending the maximum render distance in multiple ways, but it keeps resetting itself to 32.
I tried editing the options.txt and I tried patching it myself (See below).

Describe the solution you'd like
I'd like the maximum render distance to be more than 32 (maybe 64?).

Describe alternatives you've considered
None.

Additional context
For some reason GitHub doesn't allow .patch files, therefore the .txt extension.
0001-Increase-maximum-render-distance.patch.txt

commented

The game server only supports view distances up to 32 (+1) chunks. This is a hard-coded limit, and telling the client to use a higher render distance will not work.

Per ThreadedAnvilChunkManager.setViewDistance(int)...

//...
	protected void setViewDistance(int watchDistance) {
		int i = MathHelper.clamp(watchDistance + 1, 3, 33);
//...