Made chunk rendering a bit faster?

This commit is contained in:
LazyByteDev
2026-03-03 19:04:12 -05:00
parent fcf329f6cd
commit e9ea11b861
2 changed files with 7 additions and 0 deletions

View File

@@ -1941,7 +1941,12 @@ bool LevelRenderer::updateDirtyChunks()
{
if( (!onlyRebuild) ||
globalChunkFlags[ pClipChunk->globalIdx ] & CHUNK_FLAG_COMPILED ||
#ifdef _WINDOWS64
( 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
#else
( 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
#endif
{
considered++;
// Is this chunk nearer than our nearest?