aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/LevelRenderer.h
diff options
context:
space:
mode:
authorFancyEX <30706150+fancythedeveloper@users.noreply.github.com>2026-03-03 12:58:04 -0500
committerGitHub <noreply@github.com>2026-03-04 00:58:04 +0700
commit540e33d787ee46902fb49373a8a18b2d2e6d766d (patch)
tree9b5db1765a96f9db32109cd0f55e1e67b8225189 /Minecraft.Client/LevelRenderer.h
parent1b0e5df27e339d616c4b79f7cc30ab5f7582fd9e (diff)
Separate _WINDOWS64 and _XBOX_ONE (#248)
The latter returning to the original 512 value.
Diffstat (limited to 'Minecraft.Client/LevelRenderer.h')
-rw-r--r--Minecraft.Client/LevelRenderer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Minecraft.Client/LevelRenderer.h b/Minecraft.Client/LevelRenderer.h
index d9e56e34..a9e73a60 100644
--- a/Minecraft.Client/LevelRenderer.h
+++ b/Minecraft.Client/LevelRenderer.h
@@ -52,8 +52,10 @@ public:
static const int CHUNK_SIZE = 16;
#endif
static const int CHUNK_Y_COUNT = Level::maxBuildHeight / CHUNK_SIZE;
-#if (defined _XBOX_ONE || defined _WINDOWS64)
- static const int MAX_COMMANDBUFFER_ALLOCATIONS = 2047 * 1024 * 1024; // Changed to 2047. 4J had set to 512.
+#if defined _WINDOWS64
+ static const int MAX_COMMANDBUFFER_ALLOCATIONS = 2047 * 1024 * 1024; // Changed to 2047. 4J had set to 512.
+#elif defined _XBOX_ONE
+ static const int MAX_COMMANDBUFFER_ALLOCATIONS = 512 * 1024 * 1024; // 4J - added
#elif defined __ORBIS__
static const int MAX_COMMANDBUFFER_ALLOCATIONS = 448 * 1024 * 1024; // 4J - added - hard limit is 512 so giving a lot of headroom here for fragmentation (have seen 16MB lost to fragmentation in multiplayer crash dump before)
#elif defined __PS3__