mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Bump frame id before presentation
This commit is contained in:
parent
fcb7639106
commit
e64a8ee61a
@ -240,6 +240,9 @@ namespace dxvk {
|
|||||||
// Flush pending rendering commands before
|
// Flush pending rendering commands before
|
||||||
auto immediateContext = static_cast<D3D11ImmediateContext*>(deviceContext.ptr());
|
auto immediateContext = static_cast<D3D11ImmediateContext*>(deviceContext.ptr());
|
||||||
immediateContext->Flush();
|
immediateContext->Flush();
|
||||||
|
|
||||||
|
// Bump our frame id.
|
||||||
|
++m_frameId;
|
||||||
|
|
||||||
for (uint32_t i = 0; i < SyncInterval || i < 1; i++) {
|
for (uint32_t i = 0; i < SyncInterval || i < 1; i++) {
|
||||||
SynchronizePresent();
|
SynchronizePresent();
|
||||||
@ -283,9 +286,6 @@ namespace dxvk {
|
|||||||
SubmitPresent(immediateContext, sync, i);
|
SubmitPresent(immediateContext, sync, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bump our frame id.
|
|
||||||
++m_frameId;
|
|
||||||
|
|
||||||
SyncFrameLatency();
|
SyncFrameLatency();
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user