From 1ce09d7ef97cf7d51bfc7b1e20dd6ac14ad8806f Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Fri, 16 Jun 2023 12:59:34 +0100 Subject: [PATCH] R_SetFrustum micro optimisation. --- src/client/refresh/files/surf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/refresh/files/surf.c b/src/client/refresh/files/surf.c index 93d1e04a..db10cd07 100644 --- a/src/client/refresh/files/surf.c +++ b/src/client/refresh/files/surf.c @@ -174,6 +174,9 @@ R_SetFrustum(vec3_t vup, vec3_t vpn, vec3_t vright, vec3_t r_origin, RotatePointAroundVector(frustum[3].normal, vright, vpn, -(90 - fov_y / 2)); +#if defined(__GNUC__) +# pragma GCC unroll 4 +#endif for (i = 0; i < 4; i++) { frustum[i].type = PLANE_ANYZ;