mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 07:35:35 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user