mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +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
|
||||
auto immediateContext = static_cast<D3D11ImmediateContext*>(deviceContext.ptr());
|
||||
immediateContext->Flush();
|
||||
|
||||
// Bump our frame id.
|
||||
++m_frameId;
|
||||
|
||||
for (uint32_t i = 0; i < SyncInterval || i < 1; i++) {
|
||||
SynchronizePresent();
|
||||
@ -283,9 +286,6 @@ namespace dxvk {
|
||||
SubmitPresent(immediateContext, sync, i);
|
||||
}
|
||||
|
||||
// Bump our frame id.
|
||||
++m_frameId;
|
||||
|
||||
SyncFrameLatency();
|
||||
return S_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user