Removed unused code from XeFG

This commit is contained in:
cdozdil
2025-10-27 17:18:42 +03:00
parent b2c4dc0274
commit f0b73c97c5
2 changed files with 0 additions and 17 deletions
-16
View File
@@ -866,22 +866,6 @@ void XeFG_Dx12::SetResource(Dx12Resource* inputResource)
if (inputResource == nullptr || inputResource->resource == nullptr)
return;
// HACK: Prevent FG dispatch from being called for a few frames
if (_reEnableTargetFrame == _frameCount)
{
if (_isActive)
{
if (XeFGProxy::SetEnabled()(_swapChainContext, true) == XEFG_SWAPCHAIN_RESULT_SUCCESS)
_reEnableTargetFrame = 0;
else
_reEnableTargetFrame++; // Try enabling next frame
}
else
{
_reEnableTargetFrame = 0;
}
}
auto fIndex = GetIndex();
auto& type = inputResource->type;
-1
View File
@@ -22,7 +22,6 @@ class XeFG_Dx12 : public virtual IFGFeature_Dx12
uint32_t _width = 0;
uint32_t _height = 0;
bool _infiniteDepth = false;
UINT64 _reEnableTargetFrame = 0;
std::optional<bool> _haveHudless = std::nullopt;
std::unique_ptr<DI_Dx12> _depthInvert;