continue working on extended detection

This commit is contained in:
cdozdil
2024-10-21 02:44:08 +03:00
parent 01d15c0015
commit 8719c858cc
3 changed files with 574 additions and 226 deletions
+4 -4
View File
@@ -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;
+3 -3
View File
@@ -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