aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/LevelRenderer.cpp
diff options
context:
space:
mode:
authorDetectivEren <55319774+detectiveren@users.noreply.github.com>2026-03-03 17:55:27 +0000
committerGitHub <noreply@github.com>2026-03-04 00:55:27 +0700
commit1b0e5df27e339d616c4b79f7cc30ab5f7582fd9e (patch)
tree4dee17c2d532316963b981607138c8e017e988d8 /Minecraft.Client/LevelRenderer.cpp
parent515f91cad8e0625334954acd4024c6bfefcc89e8 (diff)
chunk optimization (#246)
makes chunks load a bit faster
Diffstat (limited to 'Minecraft.Client/LevelRenderer.cpp')
-rw-r--r--Minecraft.Client/LevelRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/LevelRenderer.cpp b/Minecraft.Client/LevelRenderer.cpp
index 8216f1fe..fc56494f 100644
--- a/Minecraft.Client/LevelRenderer.cpp
+++ b/Minecraft.Client/LevelRenderer.cpp
@@ -1964,8 +1964,8 @@ bool LevelRenderer::updateDirtyChunks()
{
if( (!onlyRebuild) ||
globalChunkFlags[ pClipChunk->globalIdx ] & CHUNK_FLAG_COMPILED ||
- ( distSq < 20 * 20 ) ) // Always rebuild really near things or else building (say) at tower up into empty blocks when we are low on memory will not create render data
- {
+ ( distSq < 96 * 96 ) ) // Always rebuild really near things or else building (say) at tower up into empty blocks when we are low on memory will not create render data
+ { // distSq adjusted from 20 * 20 to 96 * 96 - updated by detectiveren
considered++;
// Is this chunk nearer than our nearest?
#ifdef _LARGE_WORLDS