From b59e0752471766ae52207d96b1b30c1a950301f6 Mon Sep 17 00:00:00 2001 From: Joud Kandeel Date: Tue, 21 Jul 2026 13:26:06 +0200 Subject: [PATCH] fixed performance issue on debug builds by commenting out a commited code from the Smartcmd, I would assume that method worked fine on old update of LCE as it had a small amount of mobs in the game to save for every single tick, but as we introduce more mobs to neoLegacy that method becomes a bottle neck, and we dont really need it either in the game! --- Minecraft.Client/ServerLevel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/ServerLevel.cpp b/Minecraft.Client/ServerLevel.cpp index 5aab82f6..7a8bcf57 100644 --- a/Minecraft.Client/ServerLevel.cpp +++ b/Minecraft.Client/ServerLevel.cpp @@ -278,7 +278,10 @@ void ServerLevel::tick() #endif { PIXBeginNamedEvent(0,"Incremental save"); - save(false, nullptr); + // @3makJoud + // commenting this line of code, as it were commited by the Smartcmd or shall i say Dumpcmd, + // as it saves entities every single tick which kills performance on low end devices + //save(false, nullptr); PIXEndNamedEvent(); } #if defined(_WINDOWS64) && defined(MINECRAFT_SERVER_BUILD)