From cd2bc1e89e15d431b7146c75b5aa7a33517043ae Mon Sep 17 00:00:00 2001 From: MarcelPiNacy-CVC Date: Tue, 15 Oct 2024 17:04:24 +0200 Subject: [PATCH] Add RT flag printer. --- .../Plugins/Carla/Source/Carla/Carla.cpp | 15 ++ .../Plugins/Carla/Source/Carla/RTFlags.def | 173 ++++++++++++++++++ 2 files changed, 188 insertions(+) create mode 100644 Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/RTFlags.def diff --git a/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.cpp b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.cpp index ec45131df..810731afe 100644 --- a/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.cpp +++ b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.cpp @@ -11,10 +11,25 @@ DEFINE_LOG_CATEGORY(LogCarla); DEFINE_LOG_CATEGORY(LogCarlaServer); +static const TCHAR* flags[] = +{ +#define DEF(name) TEXT(name), +#include "RTFlags.def" +#undef DEF +}; + void FCarlaModule::StartupModule() { RegisterSettings(); LoadChronoDll(); + for (auto flag : flags) + { + auto cv = IConsoleManager::Get().FindConsoleVariable(flag); + if (cv) + { + UE_LOG(LogCarla, Log, TEXT("%s = %i"), flag, cv->GetInt()); + } + } } void FCarlaModule::LoadChronoDll() diff --git a/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/RTFlags.def b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/RTFlags.def new file mode 100644 index 000000000..e150d86ac --- /dev/null +++ b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/RTFlags.def @@ -0,0 +1,173 @@ +DEF("r.RayTracing.Geometry.ImagePlate") +DEF("r.RayTracing.Geometry.Water") +DEF("r.RayTracing.Geometry.NiagaraMeshes") +DEF("r.RayTracing.Geometry.NiagaraRibbons") +DEF("r.RayTracing.Geometry.NiagaraSprites") +DEF("r.RayTracing.Geometry.GeometryCache") +DEF("r.RayTracing.Geometry.ProceduralMeshes") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.MinLOD") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.Culling") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.CullClusterMaxRadiusMultiplier") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.CullClusterRadius") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.LowScaleRadiusThreshold") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.LowScaleCullRadius") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.CullAngle") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.EvaluateWPO") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.SimulationClusterRadius") +DEF("r.RayTracing.Geometry.InstancedStaticMeshes.SimulationCount") +DEF("r.RayTracing.Geometry.SkeletalMeshes") +DEF("r.RayTracing.Geometry.SupportSkeletalMeshes") +DEF("r.RayTracing.Geometry.SkeletalMeshes.LODBias") +DEF("r.RayTracing.Enable") +DEF("r.RayTracing.UseTextureLod") +DEF("r.RayTracing.ForceAllRayTracingEffects") +DEF("r.RayTracing.AllowInline") +DEF("r.RayTracing.AllowPipeline") +DEF("r.RayTracing.SceneCaptures") +DEF("r.RayTracing.ExcludeDecals") +DEF("r.RayTracing.ExcludeTranslucent") +DEF("r.RayTracing.ExcludeSky") +DEF("r.RayTracing.AsyncBuild") +DEF("r.RayTracing.ParallelMeshBatchSetup") +DEF("r.RayTracing.ParallelMeshBatchSize") +DEF("r.RayTracing.DynamicGeometryLastRenderTimeUpdateDistance") +DEF("r.RayTracing.AutoInstance") +DEF("r.RayTracing.DebugDisableTriangleCull") +DEF("r.RayTracing.DebugForceOpaque") +DEF("r.RayTracing.MultiGpuMaskTLAS") +DEF("r.RayTracing.Geometry.StaticMeshes") +DEF("r.RayTracing.Geometry.HierarchicalInstancedStaticMesh") +DEF("r.RayTracing.Geometry.NaniteProxies") +DEF("r.RayTracing.Geometry.LandscapeGrass") +DEF("r.RayTracing.Shadows") +DEF("r.RayTracing.Shadows.SamplesPerPixel") +DEF("r.RayTracing.Shadows.MaxBatchSize") +DEF("r.RayTracing.Shadows.Lights.Directional") +DEF("r.RayTracing.Shadows.Lights.Point") +DEF("r.RayTracing.Shadows.Lights.Spot") +DEF("r.RayTracing.Shadows.Lights.Rect") +DEF("r.RayTracing.MeshDrawCommands.CacheMultithreaded") +DEF("r.RayTracing.SceneUpdateOnce") +DEF("r.RayTracing.Nanite.Update") +DEF("r.RayTracing.Nanite.ForceUpdateVisible") +DEF("r.RayTracing.Nanite.CutError") +DEF("r.RayTracing.Nanite.StreamOut.MaxNumVertices") +DEF("r.RayTracing.Nanite.StreamOut.MaxNumIndices") +DEF("r.RayTracing.Nanite.MaxBuiltPrimitivesPerFrame") +DEF("r.RayTracing.Nanite.MaxStagingBufferSizeMB") +DEF("r.RayTracing.Nanite.ProfileStreamOut") +DEF("r.RayTracing.AmbientOcclusion") +DEF("r.RayTracing.AmbientOcclusion.SamplesPerPixel") +DEF("r.RayTracing.AmbientOcclusion.EnableTwoSidedGeometry") +DEF("r.RayTracing.AmbientOcclusion.EnableMaterials") +DEF("r.RayTracing.DecalGrid.Resolution") +DEF("r.RayTracing.DecalGrid.MaxCount") +DEF("r.RayTracing.AMDHitToken") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.GenerateRaysWithRGS") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.Glossy") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.AnyHitMaxRoughness") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SmoothBias") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.MipBias") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SpatialResolve") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SpatialResolve.MaxRadius") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SpatialResolve.NumSamples") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SpatialResolve.TemporalWeight") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.SpatialResolve.TemporalQuality") +DEF("r.RayTracing.Reflections.ExperimentalDeferred.HorizontalResolutionScale") +DEF("r.RayTracing.GlobalIllumination") +DEF("r.RayTracing.GlobalIllumination.SamplesPerPixel") +DEF("r.RayTracing.GlobalIllumination.MaxRayDistance") +DEF("r.RayTracing.GlobalIllumination.MaxShadowDistance") +DEF("r.RayTracing.GlobalIllumination.MaxBounces") +DEF("r.RayTracing.GlobalIllumination.NextEventEstimationSamples") +DEF("r.RayTracing.GlobalIllumination.DiffuseThreshold") +DEF("r.RayTracing.GlobalIllumination.Denoiser") +DEF("r.RayTracing.GlobalIllumination.EvalSkyLight") +DEF("r.RayTracing.GlobalIllumination.UseRussianRoulette") +DEF("r.RayTracing.GlobalIllumination.ScreenPercentage") +DEF("r.RayTracing.GlobalIllumination.EnableTwoSidedGeometry") +DEF("r.RayTracing.GlobalIllumination.EnableTransmission") +DEF("r.RayTracing.GlobalIllumination.RenderTileSize") +DEF("r.RayTracing.GlobalIllumination.MaxLightCount") +DEF("r.RayTracing.GlobalIllumination.FireflySuppression") +DEF("r.RayTracing.GlobalIllumination.FinalGather.Iterations") +DEF("r.RayTracing.GlobalIllumination.FinalGather.FilterWidth") +DEF("r.RayTracing.GlobalIllumination.FinalGather.Distance") +DEF("r.RayTracing.GlobalIllumination.FinalGather.SortMaterials") +DEF("r.RayTracing.GlobalIllumination.FinalGather.SortTileSize") +DEF("r.RayTracing.GlobalIllumination.FinalGather.SortSize") +DEF("r.RayTracing.GlobalIllumination.FinalGather.EnableNeighborVisibilityTest") +DEF("r.RayTracing.GlobalIllumination.FinalGather.DepthRejectionKernel") +DEF("r.RayTracing.GlobalIllumination.FinalGather.NormalRejectionKernel") +DEF("r.RayTracing.GlobalIllumination.Lights.DirectionalLight") +DEF("r.RayTracing.GlobalIllumination.Lights.SkyLight") +DEF("r.RayTracing.GlobalIllumination.Lights.PointLight") +DEF("r.RayTracing.GlobalIllumination.Lights.SpotLight") +DEF("r.RayTracing.GlobalIllumination.Lights.RectLight") +DEF("r.RayTracing.Culling") +DEF("r.RayTracing.Culling.PerInstance") +DEF("r.RayTracing.Culling.Radius") +DEF("r.RayTracing.Culling.Angle") +DEF("r.RayTracing.Culling.UseMinDrawDistance") +DEF("r.RayTracing.Culling.UseGroupIds") +DEF("r.RayTracing.Reflections") +DEF("r.RayTracing.Reflections.ScreenPercentage") +DEF("r.RayTracing.Reflections.SamplesPerPixel") +DEF("r.RayTracing.Reflections.MaxRoughness") +DEF("r.RayTracing.Reflections.MaxBounces") +DEF("r.RayTracing.Reflections.EmissiveAndIndirectLighting") +DEF("r.RayTracing.Reflections.DirectLighting") +DEF("r.RayTracing.Reflections.Shadows") +DEF("r.RayTracing.Reflections.Translucency") +DEF("r.RayTracing.Reflections.ReflectionCaptures") +DEF("r.RayTracing.Reflections.MinRayDistance") +DEF("r.RayTracing.Reflections.MaxRayDistance") +DEF("r.RayTracing.Reflections.HeightFog") +DEF("r.RayTracing.Reflections.SortMaterials") +DEF("r.RayTracing.Reflections.Hybrid") +DEF("r.RayTracing.Reflections.SortTileSize") +DEF("r.RayTracing.Reflections.RenderTileSize") +DEF("r.RayTracing.Reflections.SortSize") +DEF("r.RayTracing.Reflections.TestPathRoughness") +DEF("r.RayTracing.Reflections.MinClearCoatLevel") +DEF("r.RayTracing.Reflections.MaxUnderCoatBounces") +DEF("r.RayTracing.Reflections.RayTraceSkyLightContribution") +DEF("r.RayTracing.Reflections.ExperimentalDeferred") +DEF("r.RayTracing.Reflections.NormalBias") +DEF("r.RayTracing.Reflections.EnableTwoSidedGeometry") +DEF("r.RayTracing.NormalBias") +DEF("r.RayTracing.Shadows.EnableMaterials") +DEF("r.RayTracing.Shadows.AvoidSelfIntersectionTraceDistance") +DEF("r.RayTracing.Shadows.EnableTwoSidedGeometry") +DEF("r.RayTracing.Transmission.TransmissionSamplingDistanceCulling") +DEF("r.RayTracing.Transmission.SamplingTechnique") +DEF("r.RayTracing.Transmission.MeanFreePathType") +DEF("r.RayTracing.Transmission.RejectionSamplingTrials") +DEF("r.RayTracing.Shadows.EnableHairVoxel") +DEF("r.RayTracing.Shadows.LODTransitionStart") +DEF("r.RayTracing.Shadows.LODTransitionEnd") +DEF("r.RayTracing.Shadows.AcceptFirstHit") +DEF("r.RayTracing.SkyLight") +DEF("r.RayTracing.SkyLight.SamplesPerPixel") +DEF("r.RayTracing.SkyLight.MaxRayDistance") +DEF("r.RayTracing.SkyLight.MaxShadowThickness") +DEF("r.RayTracing.SkyLight.Sampling.StopLevel") +DEF("r.RayTracing.SkyLight.Denoiser") +DEF("r.RayTracing.SkyLight.EnableTwoSidedGeometry") +DEF("r.RayTracing.SkyLight.EnableMaterials") +DEF("r.RayTracing.SkyLight.DecoupleSampleGeneration") +DEF("r.RayTracing.SkyLight.HairVoxel") +DEF("r.RayTracing.SkyLight.ScreenPercentage") +DEF("r.RayTracing.Translucency") +DEF("r.RayTracing.Translucency.MaxRoughness") +DEF("r.RayTracing.Translucency.MaxRefractionRays") +DEF("r.RayTracing.Translucency.EmissiveAndIndirectLighting") +DEF("r.RayTracing.Translucency.DirectLighting") +DEF("r.RayTracing.Translucency.Shadows") +DEF("r.RayTracing.Translucency.MinRayDistance") +DEF("r.RayTracing.Translucency.MaxRayDistance") +DEF("r.RayTracing.Translucency.SamplesPerPixel") +DEF("r.RayTracing.Translucency.HeightFog") +DEF("r.RayTracing.Translucency.Refraction") +DEF("r.RayTracing.Translucency.PrimaryRayBias") \ No newline at end of file