* Early out AABB collision optimisation from Robert Beckebans (Xreal)
This commit is contained in:
parent
0c99c0c1d2
commit
64239037e0
5 changed files with 69 additions and 1 deletions
|
@ -685,6 +685,11 @@ void CM_TraceThroughLeaf( traceWork_t *tw, cLeaf_t *leaf ) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if ( !BoundsIntersect( tw->bounds[0], tw->bounds[1],
|
||||
b->bounds[0], b->bounds[1] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
CM_TraceThroughBrush( tw, b );
|
||||
if ( !tw->trace.fraction ) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue