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++

Exercise NR migration through public preset persistence APIs

Veyra Goal Agent9738f1a31dfd
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a76e7ca..5a3974df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -777,6 +777,7 @@ if(VEYRA_FFMPEG_ROOT AND EXISTS "${VEYRA_FFMPEG_ROOT}/include/libavformat/avform
target_compile_features(veyra_nr_model_settings_tests PRIVATE cxx_std_20)
target_compile_options(veyra_nr_model_settings_tests PRIVATE /utf-8)
target_link_libraries(veyra_nr_model_settings_tests PRIVATE veyra_engine)
+ target_link_options(veyra_nr_model_settings_tests PRIVATE /STACK:33554432)
add_executable(veyra_audio_timeline_tests tests/integration/AudioTimelineTests.cpp)
target_compile_features(veyra_audio_timeline_tests PRIVATE cxx_std_20)
target_link_libraries(veyra_audio_timeline_tests PRIVATE veyra_sinks)
diff --git a/tests/unit/NrModelSettingsTests.cpp b/tests/unit/NrModelSettingsTests.cpp
index 87e4fd18..974c4601 100644
--- a/tests/unit/NrModelSettingsTests.cpp
+++ b/tests/unit/NrModelSettingsTests.cpp
@@ -46,10 +46,13 @@ int wmain(int argc,wchar_t** argv){
for(auto old:{NrRuntime::Original,NrRuntime::Community,NrRuntime::Ampere,NrRuntime::NvidiaOriginal,NrRuntime::LmxxfAmd}){
EnhancementSettings oldSettings;oldSettings.nr=true;oldSettings.nrRuntime=old;
PresetEntry entry;entry.name=L"legacy runtime";entry.chain=toChain(oldSettings);
- std::vector<PresetEntry> decoded;std::wstring def,error;
- check(PresetLibrary::parse(PresetLibrary::encodeEntries({entry},{}),decoded,def,error)&&decoded.size()==1&&
- decoded[0].chain.firstOf(EffectType::NrEnhance)->nr.runtime==currentNrRuntime(old)&&
- decoded[0].chain.firstOf(EffectType::NrEnhance)->nr.model.performance,"old runtime selection migrates without losing original or AMD");
+ const auto path=out/(L"migration-"+std::to_wstring(int(old))+L".v1");
+ PresetLibrary writer(path);writer.setIncludeBuiltins(false);
+ const bool saved=writer.load()&&writer.put(entry);
+ PresetLibrary reader(path);reader.setIncludeBuiltins(false);
+ check(saved&&reader.load()&&reader.entries().size()==1&&
+ reader.entries()[0].chain.firstOf(EffectType::NrEnhance)->nr.runtime==currentNrRuntime(old)&&
+ reader.entries()[0].chain.firstOf(EffectType::NrEnhance)->nr.model.performance,"old runtime selection migrates without losing original or AMD");
}
const auto libraryPath=out/L"library.v1";PresetLibrary library(libraryPath);library.setIncludeBuiltins(false);
PresetEntry entry;entry.name=L"NR models";entry.chain=toChain(s);