mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-10-09 21:41:37 +00:00
Update freeze detection on Vulkan as well
This commit is contained in:
1 parent
04bf0b08d0
commit
d817d5b4c8
1 file changed
+6
-1
@@ -253,7 +253,12 @@ static VkResult hkvkQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* pPres
|
||||
|
||||
// Tick feature to let it know if it's frozen
|
||||
if (auto currentFeature = State::Instance().currentFeature; currentFeature != nullptr)
|
||||
currentFeature->TickFrozenCheck();
|
||||
{
|
||||
if (auto currentFg = State::Instance().currentFG; currentFg != nullptr)
|
||||
currentFeature->TickFrozenCheck(currentFg->GetInterpolatedFrameCount());
|
||||
else
|
||||
currentFeature->TickFrozenCheck();
|
||||
}
|
||||
|
||||
VkPresentInfoKHR localPresentInfo {};
|
||||
memcpy(&localPresentInfo, pPresentInfo, sizeof(VkPresentInfoKHR));
|
||||
|
||||
Reference in new issue
Block a user