Use the SSE2 version in debug builds as its faster when the optimizer isn't running
This commit is contained in:
parent
22aab27058
commit
c46896599c
1 changed files with 2 additions and 1 deletions
|
|
@ -568,7 +568,8 @@ int CPUBottomLevelAccelStruct::SubdivideLeaf(int* triangles, int num_triangles)
|
|||
}
|
||||
|
||||
// Sadly, this seems to be slower than what the compiler generated :(
|
||||
#if 0 // #ifndef NO_SSE
|
||||
// Use it in debug mode anyway as its time critical and faster there
|
||||
#if !defined(NO_SSE) && defined(_DEBUG)
|
||||
|
||||
static const FVector3 axes[3] = { FVector3(-1.0f, 0.0f, 0.0f), FVector3(0.0f, -1.0f, 0.0f), FVector3(0.0f, 0.0f, -1.0f) };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue