mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 14:00:58 +00:00
Merge pull request #1029 from devnexen/little_optimisations
hunk api enrichment and micro optimisation on R_SetFrustum
This commit is contained in:
commit
6339fccd49
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