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!

This commit is contained in:
Joud Kandeel
2026-07-21 13:26:06 +02:00
parent 18136070c1
commit b59e075247
+4 -1
View File
@@ -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)