File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
RadeonRays/src/accelerator Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ namespace RadeonRays
456
456
auto rsa = mm_select (
457
457
aabb_surface_area (right_min[i], right_max[i]), 0 );
458
458
459
- auto s = static_cast < float >( kTraversalCost ) + (lc * lsa + rc * rsa) * area_inv;
459
+ auto s = m_traversal_cost + (lc * lsa + rc * rsa) * area_inv;
460
460
461
461
if (s < sah)
462
462
{
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ namespace RadeonRays
71
71
// Threshold number of primitives to disable SAH split
72
72
kMinSAHPrimitives = 32u ,
73
73
// Maximum stack size for non-parallel builds
74
- kStackSize = 1024u ,
75
- // Traversal vs intersection cost ratio
76
- kTraversalCost = 10u
74
+ kStackSize = 1024u
77
75
};
78
76
79
77
// Enum for node type
You can’t perform that action at this time.
0 commit comments