refactor: remove usage of win32 Sleep function for this_thread::sleep_for

This commit is contained in:
Tropical
2026-03-25 19:12:11 -05:00
parent f4a2db1252
commit 8e94b763a7
23 changed files with 144 additions and 78 deletions

View File

@@ -1,3 +1,6 @@
#include <thread>
#include <chrono>
#include "../Platform/stdafx.h"
#include "ServerChunkCache.h"
#include "../Level/ServerLevel.h"
@@ -277,7 +280,7 @@ LevelChunk* ServerChunkCache::create(
}
#ifdef __PS3__
Sleep(1);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
#endif // __PS3__
return chunk;
}