mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-27 16:46:36 +00:00
continue working on extended detection
This commit is contained in:
@@ -29,7 +29,7 @@ static PfnFfxDestroyContext _destroyContext = nullptr;
|
||||
static PfnFfxConfigure _configure = nullptr;
|
||||
static PfnFfxQuery _query = nullptr;
|
||||
static PfnFfxDispatch _dispatch = nullptr;
|
||||
static UINT64 msNow = 0;
|
||||
static UINT64 fgLastFrameTime = 0;
|
||||
static DU_Dx12* DepthUpscaler = nullptr;
|
||||
static FT_Dx12* FormatTransfer = nullptr;
|
||||
static UINT64 fgTarget = 0;
|
||||
@@ -1581,13 +1581,13 @@ NVSDK_NGX_API NVSDK_NGX_Result NVSDK_NGX_D3D12_EvaluateFeature(ID3D12GraphicsCom
|
||||
float msDelta = 0.0;
|
||||
auto now = Util::MillisecondsNow();
|
||||
|
||||
if (msNow != 0)
|
||||
if (fgLastFrameTime != 0)
|
||||
{
|
||||
msDelta = now - msNow;
|
||||
msDelta = now - fgLastFrameTime;
|
||||
LOG_DEBUG(" FG _dispatch msDelta: {0}", msDelta);
|
||||
}
|
||||
|
||||
msNow = now;
|
||||
fgLastFrameTime = now;
|
||||
|
||||
dfgPrepare.frameTimeDelta = msDelta;
|
||||
|
||||
|
||||
@@ -919,11 +919,11 @@ void ImGuiCommon::RenderMenu()
|
||||
|
||||
ImGui::PushItemWidth(85.0);
|
||||
|
||||
int hudFixLimit = Config::Instance()->FGHUDLimit.value_or(0);
|
||||
int hudFixLimit = Config::Instance()->FGHUDLimit.value_or(1);
|
||||
if (ImGui::InputInt("Limit", &hudFixLimit))
|
||||
{
|
||||
if (hudFixLimit < 0)
|
||||
hudFixLimit = 0;
|
||||
if (hudFixLimit < 1)
|
||||
hudFixLimit = 1;
|
||||
else if (hudFixLimit > 99)
|
||||
hudFixLimit = 99;
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user