* 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
|
@ -1386,6 +1386,11 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s *
|
|||
static cvar_t *cv;
|
||||
#endif //BSPC
|
||||
|
||||
if ( !BoundsIntersect( tw->bounds[0], tw->bounds[1],
|
||||
pc->bounds[0], pc->bounds[1] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (tw->isPoint) {
|
||||
CM_TracePointThroughPatchCollide( tw, pc );
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue