mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-20 19:02:23 +00:00
R_SetFrustum micro optimisation.
This commit is contained in:
parent
4f04e7857a
commit
1ce09d7ef9
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue