Skip to content

Commit

Permalink
[raytrace] Drop unused var caused false thread sharing and hammer lig…
Browse files Browse the repository at this point in the history
…hting preview performance loss

ValveSoftware/source-sdk-2013#436
  • Loading branch information
dimhotepus committed Dec 9, 2024
1 parent 5fd74bf commit 85018d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion bitmap/float_bm4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// In order to handle intersections with wrapped copies, we repeat the bitmap triangles this many
// times
constexpr int NREPS_TILE{1};
extern int n_intersection_calculations;



Expand Down
3 changes: 0 additions & 3 deletions raytrace/raytrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ void CacheOptimizedTriangle::ChangeIntoIntersectionFormat(void)

}

int n_intersection_calculations=0;

int CacheOptimizedTriangle::ClassifyAgainstAxisSplit(int split_plane, float split_value)
{
// classify a triangle against an axis-aligned plane
Expand Down Expand Up @@ -476,7 +474,6 @@ void RayTracingEnvironment::Trace4Rays(const FourRays &rays, fltx4 TMin, fltx4 T
TriIntersectData_t const *tri = &( OptimizedTriangleList[tnum].m_Data.m_IntersectData );
if ( ( mailboxids[mbox_slot] != tnum ) && ( tri->m_nTriangleID != skip_id ) )
{
n_intersection_calculations++;
mailboxids[mbox_slot] = tnum;
// compute plane intersection

Expand Down

0 comments on commit 85018d4

Please sign in to comment.