Skip to content

Commit

Permalink
Fix busy loop for dxgi framepacing (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spodi authored Dec 13, 2023
1 parent 233d4ea commit 8194f30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphic/Fast3D/gfx_dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ static void gfx_dxgi_swap_buffers_begin(void) {
do {
YieldProcessor();
QueryPerformanceCounter(&t);
t.QuadPart = qpc_to_100ns(t.QuadPart);
} while (t.QuadPart < next);
}
}
Expand Down

0 comments on commit 8194f30

Please sign in to comment.