Skip to content

Commit

Permalink
[ssr] improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Nov 18, 2024
1 parent 8847ab2 commit fe8a5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions runtime/RHI/D3D12/D3D12_FidelityFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ namespace Spartan

void RHI_FidelityFX::BrixelizerGI_Update(
RHI_CommandList* cmd_list,
const float resolution_scale,
Cb_Frame* cb_frame,
vector<shared_ptr<Entity>>& entities,
int64_t index_start,
Expand Down
4 changes: 2 additions & 2 deletions runtime/RHI/Vulkan/Vulkan_FidelityFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ namespace Spartan
sssr::description_dispatch.normalUnPackMul = 1.0f;
sssr::description_dispatch.normalUnPackAdd = 0.0f;
sssr::description_dispatch.depthBufferThickness = 0.08f; // hit acceptance bias, larger values can cause streaks, lower values can cause holes
sssr::description_dispatch.varianceThreshold = 0.0f; // luminance differences between history results will trigger an additional ray if they are greater than this threshold value
sssr::description_dispatch.maxTraversalIntersections = 32; // caps the maximum number of lookups that are performed from the depth buffer hierarchy, most rays should end after about 20 lookups
sssr::description_dispatch.varianceThreshold = 0.02f; // luminance differences between history results will trigger an additional ray if they are greater than this threshold value
sssr::description_dispatch.maxTraversalIntersections = 20; // caps the maximum number of lookups that are performed from the depth buffer hierarchy, most rays should end after about 20 lookups
sssr::description_dispatch.minTraversalOccupancy = 4; // exit the core loop early if less than this number of threads are running
sssr::description_dispatch.mostDetailedMip = 0;
sssr::description_dispatch.temporalStabilityFactor = 0.8f; // the accumulation of history values, higher values reduce noise, but are more likely to exhibit ghosting artifacts
Expand Down

0 comments on commit fe8a5ec

Please sign in to comment.