Skip to content

Commit

Permalink
wdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Apr 23, 2024
1 parent 5dd49f4 commit 916a04b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/render/dxgi/dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3060,6 +3060,8 @@ SK_DXGI_PresentBase ( IDXGISwapChain *This,
if (config.fps.timing_method == SK_FrametimeMeasures_PresentSubmit)
{
if (_IsBackendD3D11(rb.api)){
SK_LOG1 ( ( L"This: %p, _d3d11_rbk->_pSwapChain.p: %p", This, _d3d11_rbk->_pSwapChain.p ),
L" DXGI " );
if (_d3d11_rbk->_pSwapChain.IsEqualObject(This)){
/*
* some games have two swapchains with dxvk
Expand All @@ -3072,7 +3074,7 @@ SK_DXGI_PresentBase ( IDXGISwapChain *This,
* doulbe check if the swapchain is the one registered in _d3d11_rbk
* before adding to frametime stats for frame limiter disabled mode
*/
SK::Framerate::TickEx (false, 0.0, { 0,0 }, rb.swapchain.p);
SK::Framerate::TickEx (false, 0.0, { 0,0 }, This);
}
}else{
SK::Framerate::TickEx (false, 0.0, { 0,0 }, rb.swapchain.p);
Expand Down Expand Up @@ -3148,11 +3150,13 @@ SK_DXGI_PresentBase ( IDXGISwapChain *This,
(config.fps.timing_method == SK_FrametimeMeasures_LimiterPacing && __target_fps <= 0.0f))
{
if (_IsBackendD3D11(rb.api)){
SK_LOG1 ( ( L"This: %p, _d3d11_rbk->_pSwapChain.p: %p", This, _d3d11_rbk->_pSwapChain.p ),
L" DXGI " );
if (_d3d11_rbk->_pSwapChain.IsEqualObject(This)){
/*
* ditto dxvk fix, see previous handling of TickEx
*/
SK::Framerate::TickEx (false, 0.0, { 0,0 }, rb.swapchain.p);
SK::Framerate::TickEx (false, 0.0, { 0,0 }, This);
}
}else{
SK::Framerate::TickEx (false, 0.0, { 0,0 }, rb.swapchain.p);
Expand Down

0 comments on commit 916a04b

Please sign in to comment.