Skip to content

Commit

Permalink
Tweak spatial re-use settings to avoid misses
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Sep 8, 2024
1 parent 022811c commit 78a780b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blade-render/code/ray-trace.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ fn resample_spatial(
var accepted_count = 0u;
var accepted_local_indices = array<u32, MAX_RESAMPLE>();
let max_accepted = min(MAX_RESAMPLE, parameters.spatial_taps);
let num_candidates = parameters.spatial_taps * 3u;
let num_candidates = parameters.spatial_taps * 4u;
for (var i = 0u; i < num_candidates && accepted_count < max_accepted; i += 1u) {
let other_cache_index = random_u32(rng) % GROUP_SIZE_TOTAL;
let diff = thread_index_to_coord(other_cache_index, group_id) - cur_pixel;
Expand Down
2 changes: 1 addition & 1 deletion examples/scene/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl Example {
temporal_confidence: 10.0,
spatial_taps: 1,
spatial_confidence: 5.0,
spatial_min_distance: 4,
spatial_min_distance: 2,
group_mixer: 10,
t_start: 0.1,
pairwise_mis: true,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl Engine {
temporal_confidence: 10.0,
spatial_taps: 1,
spatial_confidence: 5.0,
spatial_min_distance: 4,
spatial_min_distance: 2,
group_mixer: 10,
t_start: 0.01,
pairwise_mis: true,
Expand Down

0 comments on commit 78a780b

Please sign in to comment.