R_SetFrustum micro optimisation.

This commit is contained in:
David CARLIER 2023-06-16 12:59:34 +01:00
parent 4f04e7857a
commit 1ce09d7ef9

View file

@ -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;