LCEMP v1.1.0, bugfixes, multithreading server, local leaderboard, performance fixes, and more

This commit is contained in:
NOTPIES
2026-04-20 18:56:39 -04:00
parent fadeee4192
commit 7e7668c7fa
88 changed files with 4825 additions and 634 deletions

View File

@@ -500,7 +500,24 @@ void PlayerChunkMap::getChunkAndRemovePlayer(int x, int z, shared_ptr<ServerPlay
void PlayerChunkMap::tickAddRequests(shared_ptr<ServerPlayer> player)
{
#ifdef _WINDOWS64
const int maxPerTick = 10;
int maxPerTick = 10;
#if defined(_DEDICATED_SERVER)
int activePlayers = (int)players.size();
if (activePlayers < 1)
{
activePlayers = 1;
}
maxPerTick = 48 / activePlayers;
if (maxPerTick < 1)
{
maxPerTick = 1;
}
if (maxPerTick > 10)
{
maxPerTick = 10;
}
#endif
#else
const int maxPerTick = 1;
#endif