Merge pull request #1029 from devnexen/little_optimisations

hunk api enrichment and micro optimisation on R_SetFrustum
This commit is contained in:
Yamagi 2023-06-17 16:32:42 +02:00 committed by GitHub
commit 6339fccd49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;