Fix RE4 menu not visible

Upscaler time will be 0, beause there are no swapchain hooks
This commit is contained in:
cdozdil
2026-07-01 23:56:51 +03:00
parent b291c52692
commit 0602fed2a6
+11 -1
View File
@@ -17,6 +17,10 @@
#include <version_check.h>
#include <upscaler_time/UpscalerTime_Vk.h>
#include <upscaler_time/UpscalerTime_Dx11.h>
#include <upscaler_time/UpscalerTime_Dx12.h>
#include <imgui/imgui_internal.h>
#include <imgui/ImGuiNotify.hpp>
#include <imgui/imgui_impl_win32.h>
@@ -1240,6 +1244,9 @@ void MenuCommon::UpdateRenderTiming(RenderMenuContext& ctx)
}
else
{
if (state.activeFgInput == FGInput::NoFG || state.activeFgOutput == FGOutput::NoFG)
MenuCommon::Present();
frameTime = lastFrameTime;
frameRate = 1000.0 / frameTime;
}
@@ -1830,7 +1837,10 @@ void MenuCommon::RenderPerformanceOverlay(RenderMenuContext& ctx)
}
}
firstLine = StrFmt("%s | %s%s%s", api.c_str(), fpsPart.c_str(), fgText.c_str(), featurePart.c_str());
if (overlayType == FpsOverlay_JustFPS)
firstLine = StrFmt("%s", fpsPart.c_str());
else
firstLine = StrFmt("%s | %s%s%s", api.c_str(), fpsPart.c_str(), fgText.c_str(), featurePart.c_str());
// Prepare Line 2
if (config->FpsOverlayType.value_or_default() >= FpsOverlay_Detailed)