Advertisement
Guest User

dxva2vp_stats_fix.diff

a guest
Jan 22nd, 2021
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.68 KB | None | 0 0
  1.  Source/DX9VideoProcessor.cpp | 4 ++++
  2.  1 file changed, 4 insertions(+)
  3.  
  4. diff --git a/Source/DX9VideoProcessor.cpp b/Source/DX9VideoProcessor.cpp
  5. index c4d6270..634e64a 100644
  6. --- a/Source/DX9VideoProcessor.cpp
  7. +++ b/Source/DX9VideoProcessor.cpp
  8. @@ -1413,6 +1413,8 @@ HRESULT CDX9VideoProcessor::Render(int field)
  9.         }
  10.     }
  11.  
  12. +   hr = m_pD3DDevEx->BeginScene();
  13. +
  14.     if (m_bShowStats) {
  15.         hr = DrawStats(pBackBuffer);
  16.     }
  17. @@ -1448,6 +1450,8 @@ HRESULT CDX9VideoProcessor::Render(int field)
  18.         nTearingPos = (nTearingPos + 7) % windowSize.cx;
  19.     }
  20.  #endif
  21. +   hr = m_pD3DDevEx->EndScene();
  22. +
  23.     uint64_t tick2 = GetPreciseTick();
  24.     m_RenderStats.paintticks = tick2 - tick1;
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement