Skip to content

Commit

Permalink
Improve vrad performance using fix from ValveSoftware/source-sdk-2013…
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumann committed Jan 7, 2024
1 parent 32cf075 commit 2a2b03d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mp/src/raytrace/raytrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void CacheOptimizedTriangle::ChangeIntoIntersectionFormat(void)

}

int n_intersection_calculations=0;
//int n_intersection_calculations=0;

int CacheOptimizedTriangle::ClassifyAgainstAxisSplit(int split_plane, float split_value)
{
Expand Down Expand Up @@ -476,7 +476,7 @@ 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++;
//n_intersection_calculations++;
mailboxids[mbox_slot] = tnum;
// compute plane intersection

Expand Down
4 changes: 2 additions & 2 deletions sp/src/raytrace/raytrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void CacheOptimizedTriangle::ChangeIntoIntersectionFormat(void)

}

int n_intersection_calculations=0;
//int n_intersection_calculations=0;

int CacheOptimizedTriangle::ClassifyAgainstAxisSplit(int split_plane, float split_value)
{
Expand Down Expand Up @@ -476,7 +476,7 @@ 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++;
//n_intersection_calculations++;
mailboxids[mbox_slot] = tnum;
// compute plane intersection

Expand Down

0 comments on commit 2a2b03d

Please sign in to comment.