This commit is contained in:
GabsPuNs
2026-05-14 21:52:21 -04:00
parent 1b2f5c6fe8
commit f8a2d644f5
291 changed files with 7363 additions and 18368 deletions

View File

@@ -45,11 +45,11 @@ private:
static ResourceLocation END_SKY_LOCATION;
public:
static constexpr int CHUNK_XZSIZE = 16;
static const int CHUNK_XZSIZE = 16;
#ifdef _LARGE_WORLDS
static constexpr int CHUNK_SIZE = 16;
static const int CHUNK_SIZE = 16;
#else
static constexpr int CHUNK_SIZE = 16;
static const int CHUNK_SIZE = 16;
#endif
static constexpr int CHUNK_Y_COUNT = Level::maxBuildHeight / CHUNK_SIZE;
#if defined _WINDOWS64
@@ -221,10 +221,10 @@ public:
// This is the TOTAL area of columns of chunks to be allocated for render round the players. So for one player, it would be a region of
// sqrt(PLAYER_RENDER_AREA) x sqrt(PLAYER_RENDER_AREA)
#ifdef _LARGE_WORLDS
static constexpr int PLAYER_VIEW_DISTANCE = 18; // Straight line distance from centre to extent of visible world
static const int PLAYER_VIEW_DISTANCE = 18; // Straight line distance from centre to extent of visible world
static constexpr int PLAYER_RENDER_AREA = (PLAYER_VIEW_DISTANCE * PLAYER_VIEW_DISTANCE * 4);
#else
static constexpr int PLAYER_RENDER_AREA = 400;
static const int PLAYER_RENDER_AREA = 400;
#endif
static int getDimensionIndexFromId(int id);
@@ -275,7 +275,7 @@ public:
static const int FORCE_DIRTY_CHUNK_CHECK_PERIOD_MS = 125; // decreased from 250 to 125 - updated by detectiveren
#ifdef _LARGE_WORLDS
static constexpr int MAX_CONCURRENT_CHUNK_REBUILDS = 8; // increased from 4 to 8 - updated by detectiveren
static const int MAX_CONCURRENT_CHUNK_REBUILDS = 8; // increased from 4 to 8 - updated by detectiveren
static constexpr int MAX_CHUNK_REBUILD_THREADS = MAX_CONCURRENT_CHUNK_REBUILDS - 1;
static Chunk permaChunk[MAX_CONCURRENT_CHUNK_REBUILDS];
static C4JThread *rebuildThreads[MAX_CHUNK_REBUILD_THREADS];