Add more events for GPU profiling

This commit is contained in:
Wojtek Figat
2025-08-02 17:12:53 +02:00
parent 744c94b3cc
commit 5de5d8f683
5 changed files with 6 additions and 2 deletions

BIN
Content/Shaders/PostProcessing.flax (Stored with Git LFS)

Binary file not shown.

View File

@@ -186,6 +186,7 @@ GPU_CB_STRUCT(Data {
void ExponentialHeightFog::DrawFog(GPUContext* context, RenderContext& renderContext, GPUTextureView* output)
{
PROFILE_GPU_CPU("Exponential Height Fog");
auto integratedLightScattering = renderContext.Buffers->VolumetricFog;
bool useVolumetricFog = integratedLightScattering != nullptr;

View File

@@ -176,6 +176,7 @@ void Sky::DrawFog(GPUContext* context, RenderContext& renderContext, GPUTextureV
AtmosphereCache cache;
if (!AtmospherePreCompute::GetCache(&cache))
return;
PROFILE_GPU_CPU("Sky Fog");
context->BindSR(4, cache.Transmittance);
context->BindSR(5, cache.Irradiance);
context->BindSR(6, cache.Inscatter->ViewVolume());

View File

@@ -368,6 +368,7 @@ void ReflectionsPass::Render(RenderContext& renderContext, GPUTextureView* light
// Check if no need to render reflection environment
if (!useReflections || !(renderProbes || useSSR))
return;
PROFILE_GPU_CPU("Reflections");
// Setup data
Data data;

View File

@@ -619,6 +619,7 @@ float4 PS_Composite(Quad_VS2PS input) : SV_Target
float4 color;
// Chromatic Abberation
BRANCH
if (ChromaticDistortion > 0)
{
const float MAX_DIST_PX = 24.0;