Merge pull request #312 from 4jcraft/refactor/replace-sleep

refactor: replace win32 thread sleeping and yielding with `std::thread` primitives
This commit is contained in:
Tropical
2026-03-27 18:47:47 -05:00
committed by GitHub
24 changed files with 156 additions and 89 deletions

View File

@@ -1,3 +1,6 @@
#include <thread>
#include <chrono>
#include "../Platform/stdafx.h"
#include "LevelRenderer.h"
#include <cmath>
@@ -2321,7 +2324,7 @@ bool LevelRenderer::updateDirtyChunks() {
}
LeaveCriticalSection(&m_csDirtyChunks);
#ifdef __PS3__
Sleep(5);
std::this_thread::sleep_for(std::chrono::milliseconds(5));
#endif // __PS3__
return false;
}