Skip to content

Commit

Permalink
add misc tool performance fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitl committed Apr 2, 2022
1 parent 62467cd commit 416e64d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
Binary file modified sp/src/lib/public/fgdlib.lib
Binary file not shown.
Binary file modified sp/src/lib/public/raytrace.lib
Binary file not shown.
3 changes: 0 additions & 3 deletions sp/src/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
2 changes: 1 addition & 1 deletion sp/src/utils/common/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "threads.h"
#include "pacifier.h"

#define MAX_THREADS 16
#define MAX_THREADS 256


class CRunThreadsData
Expand Down
2 changes: 1 addition & 1 deletion sp/src/utils/common/threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// Arrays that are indexed by thread should always be MAX_TOOL_THREADS+1
// large so THREADINDEX_MAIN can be used from the main thread.
#define MAX_TOOL_THREADS 16
#define MAX_TOOL_THREADS 256
#define THREADINDEX_MAIN (MAX_TOOL_THREADS)


Expand Down

0 comments on commit 416e64d

Please sign in to comment.