Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Keep NR model persistence fixture limited to its declared layer count

Veyra Goal Agent23e6ed2833c1
diff --git a/tests/unit/NrModelSettingsTests.cpp b/tests/unit/NrModelSettingsTests.cpp
index 974c4601..5b548581 100644
--- a/tests/unit/NrModelSettingsTests.cpp
+++ b/tests/unit/NrModelSettingsTests.cpp
@@ -28,7 +28,7 @@ int wmain(int argc,wchar_t** argv){
}
auto off=s;off.nr=false;auto draft=off;draft.model.performance=false;
check(!requiresGraphRebuild(off,draft)&&off.sameActiveVideoParameters(draft),"disabled NR model edit does not disturb playback");
- s.nrLayerCount=2;for(auto& n:s.nrLayers){n.enabled=true;n.runtime=s.nrRuntime;}
+ s.nrLayerCount=2;for(unsigned i=0;i<s.nrLayerCount;++i){s.nrLayers[i].enabled=true;s.nrLayers[i].runtime=s.nrRuntime;}
a=s;a.nrLayers[1].model.performance=false;
check(requiresGraphRebuild(s,a),"second active NR layer model change rebuilds");
s.nrLayers[1].enabled=a.nrLayers[1].enabled=false;