Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Apr 23, 2024
1 parent 9acacc6 commit a4e3cd9
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 @@ -3062,7 +3062,7 @@ 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 ),
SK_LOG1 ( ( L"tickex check This: %p, _d3d11_rbk->_pSwapChain.p: %p", This, _d3d11_rbk->_pSwapChain.p ),
L" DXGI " );
if (_d3d11_rbk->_pSwapChain.IsEqualObject(This)){
/*
Expand All @@ -3076,6 +3076,8 @@ 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_LOG1 ( ( L"tickex ticking on swapchain %p", This),
L" DXGI " );
SK::Framerate::TickEx (false, 0.0, { 0,0 }, This);
}
}else{
Expand Down Expand Up @@ -3152,12 +3154,14 @@ 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 ),
SK_LOG1 ( ( L"tickex check 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_LOG1 ( ( L"tickex ticking on swapchain %p", This),
L" DXGI " );
SK::Framerate::TickEx (false, 0.0, { 0,0 }, This);
}
}else{
Expand Down

0 comments on commit a4e3cd9

Please sign in to comment.