@@ -167,23 +167,6 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
167
167
dumpCount += Config::Instance ()->xessDebugFrames ;
168
168
}
169
169
170
- if (Config::Instance ()->changeRCAS )
171
- {
172
- if (RCAS != nullptr && RCAS.get () != nullptr )
173
- {
174
- spdlog::trace (" XeSSFeatureDx11::Evaluate sleeping before CAS.reset() for 250ms" );
175
- std::this_thread::sleep_for (std::chrono::milliseconds (250 ));
176
- RCAS.reset ();
177
- }
178
- else
179
- {
180
- Config::Instance ()->changeRCAS = false ;
181
- spdlog::trace (" XeSSFeatureDx11::Evaluate sleeping before CAS creation for 250ms" );
182
- std::this_thread::sleep_for (std::chrono::milliseconds (250 ));
183
- RCAS = std::make_unique<RCAS_Dx12>(" RCAS" , Dx12Device);
184
- }
185
- }
186
-
187
170
// creatimg params for XeSS
188
171
xess_result_t xessResult;
189
172
xess_d3d12_execute_params_t params{};
@@ -259,7 +242,7 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
259
242
// RCAS
260
243
if (!Config::Instance ()->changeRCAS &&
261
244
Config::Instance ()->RcasEnabled .value_or (true ) &&
262
- sharpness > 0 .0f &&
245
+ ( sharpness > 0 .0f || Config::Instance ()-> MotionSharpnessEnabled . value_or ( false )) &&
263
246
RCAS != nullptr && RCAS.get () != nullptr &&
264
247
RCAS->CreateBufferResource (Dx12Device, params.pOutputTexture , D3D12_RESOURCE_STATE_UNORDERED_ACCESS))
265
248
{
@@ -326,13 +309,13 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
326
309
RCAS != nullptr && RCAS.get () != nullptr )
327
310
{
328
311
spdlog::debug (" XeSSFeatureDx11::Evaluate Apply CAS" );
312
+
329
313
if (params.pOutputTexture != RCAS->Buffer ())
330
314
ResourceBarrier (Dx12CommandList, params.pOutputTexture , D3D12_RESOURCE_STATE_UNORDERED_ACCESS, D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
331
315
332
316
RCAS->SetBufferState (Dx12CommandList, D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
333
317
334
318
RcasConstants rcasConstants{};
335
-
336
319
rcasConstants.Sharpness = sharpness;
337
320
rcasConstants.DisplayWidth = DisplayWidth ();
338
321
rcasConstants.DisplayHeight = DisplayHeight ();
0 commit comments