mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-28 05:11:37 +00:00
Change spin wait in D3D12 present to infinite wait.
This commit is contained in:
parent
af6c9aaafa
commit
79ad4c2099
1 changed files with 1 additions and 3 deletions
|
|
@ -1265,9 +1265,7 @@ namespace plume {
|
||||||
|
|
||||||
bool D3D12SwapChain::present(uint32_t textureIndex, RenderCommandSemaphore **waitSemaphores, uint32_t waitSemaphoreCount) {
|
bool D3D12SwapChain::present(uint32_t textureIndex, RenderCommandSemaphore **waitSemaphores, uint32_t waitSemaphoreCount) {
|
||||||
if (waitableObject != NULL) {
|
if (waitableObject != NULL) {
|
||||||
while (WaitForSingleObjectEx(waitableObject, 0, FALSE)) {
|
WaitForSingleObject(waitableObject, INFINITE);
|
||||||
std::this_thread::yield();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT syncInterval = vsyncEnabled ? 1 : 0;
|
UINT syncInterval = vsyncEnabled ? 1 : 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue