mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Bump frame id before presentation
This commit is contained in:
parent
e64a8ee61a
commit
747834e9b0
@ -778,6 +778,9 @@ namespace dxvk {
|
|||||||
auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage();
|
auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage();
|
||||||
auto swapImageView = m_backBuffers[0]->GetImageView(false);
|
auto swapImageView = m_backBuffers[0]->GetImageView(false);
|
||||||
|
|
||||||
|
// 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();
|
||||||
|
|
||||||
@ -820,9 +823,6 @@ namespace dxvk {
|
|||||||
SubmitPresent(sync, i);
|
SubmitPresent(sync, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bump our frame id.
|
|
||||||
++m_frameId;
|
|
||||||
|
|
||||||
SyncFrameLatency();
|
SyncFrameLatency();
|
||||||
|
|
||||||
// Rotate swap chain buffers so that the back
|
// Rotate swap chain buffers so that the back
|
||||||
|
Loading…
x
Reference in New Issue
Block a user