Everytime I run a commandlet for example PCG world partition builder on 5.7.1 i’m seeing these warnings come up in horde:
LogConsoleManager: Warning: Console object named ‘d3d12.AllowDiscardResources’ already exists but is being registered again, but we weren’t expected it to be! (FConsoleManager::AddConsoleObject)
LogConsoleManager: Warning: Console object named ‘d3d12.DisableDiscardOfDepthResources’ already exists but is being registered again, but we weren’t expected it to be! (FConsoleManager::AddConsoleObject)
LogConsoleManager: Warning: Console object named ‘d3d12.BatchResourceBarriers’ already exists but is being registered again, but we weren’t expected it to be! (FConsoleManager::AddConsoleObject)
Is this intentional? It would be great if this was not getting spammed making the build yellow on every run.
I ran a few test in a local project and I’m not seeing multiple registrations of those console objects. Can you share the log from the commandlet and the uproject file? I suspect this might be linked to a plugin that I didn’t activate.
As suspected, the problem is caused by a plugin I didn’t have: FSR4. The problem is that FFXD3D12Backend.cpp is including 2 private headers from the engine and this results in including ID3D12Barriers.h. This creates the duplicate CVars in the produced DLL. The fix is to stop including the private headers and add the missing public one: