libobs-d3d11: Fix present skip comment
It's about the CPU being ahead of the GPU, not flip queue being full. Also fix variable typo.
This commit is contained in:
parent
27efd76125
commit
a9958b96d2
@ -2037,10 +2037,10 @@ void device_present(gs_device_t *device)
|
|||||||
{
|
{
|
||||||
gs_swap_chain *const curSwapChain = device->curSwapChain;
|
gs_swap_chain *const curSwapChain = device->curSwapChain;
|
||||||
if (curSwapChain) {
|
if (curSwapChain) {
|
||||||
/* Skip Present because full queue may cause a stall */
|
/* Skip Present at frame limit to avoid stall */
|
||||||
const HANDLE hWaitiable = curSwapChain->hWaitable;
|
const HANDLE hWaitable = curSwapChain->hWaitable;
|
||||||
if ((hWaitiable == NULL) ||
|
if ((hWaitable == NULL) ||
|
||||||
WaitForSingleObject(hWaitiable, 0) == WAIT_OBJECT_0) {
|
WaitForSingleObject(hWaitable, 0) == WAIT_OBJECT_0) {
|
||||||
const HRESULT hr = curSwapChain->swap->Present(
|
const HRESULT hr = curSwapChain->swap->Present(
|
||||||
0, curSwapChain->presentFlags);
|
0, curSwapChain->presentFlags);
|
||||||
if (hr == DXGI_ERROR_DEVICE_REMOVED ||
|
if (hr == DXGI_ERROR_DEVICE_REMOVED ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user