mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 16:32:45 +00:00
Fix RE4 menu not visible
Upscaler time will be 0, beause there are no swapchain hooks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user