HaywireInteractive / OnAllFronts-Public

UE5 MilSim FPS / RTS Game (formerly ProjectM)
MIT License
112 stars 22 forks source link

Suppress warnings from DLSS Plugin on project launch #931

Closed Leroy231 closed 4 months ago

Leroy231 commented 4 months ago

When we start the project we always get these warnings (it's possible only on Nvidia GPU):

[2024.04.22-07.15.40:386][  0]LogStreamlineAPI: Warning: [Warn]: [22.04.2024 07-15-14][streamline][warn]ota.cpp:480[getOTAPluginForFeature] No updated version found for plugin: reflex_0
[2024.04.22-07.15.40:386][  0]LogStreamlineAPI: Warning: [Warn]: [22.04.2024 07-15-14][streamline][warn]ota.cpp:480[getOTAPluginForFeature] No updated version found for plugin: dlss_g_0
[2024.04.22-07.15.40:386][  0]LogStreamlineAPI: Warning: [Warn]: [22.04.2024 07-15-14][streamline][warn]ota.cpp:480[getOTAPluginForFeature] No updated version found for plugin: common_0
[2024.04.22-07.15.40:386][  0]LogStreamlineAPI: Warning: [Warn]: [22.04.2024 07-15-15][streamline][warn]commonentry.cpp:1252[slOnPluginStartup] Valid application id is required in production builds - allowing for now but please fix this

This just adds noise to the logs and makes it harder to identify real warnings. We should be able to suppress this if we run the underlying code that this console command runs on project launch:

log LogStreamlineAPI Error

We should find out what C++ code runs from that console command and call the underlying C++ function on project launch. Project launch code can go in FProjectMModule::StartupModule.