|
|
|
@ -193,8 +193,11 @@ static void world_drawnode(const world_t *world, short nodeIdx, u_char *pvs) |
|
|
|
if ((pvs[test >> 3] & (1 << (test & 0x7))) == 0) |
|
|
|
return; |
|
|
|
|
|
|
|
u_long frameNum = time_getFrameNumber(); |
|
|
|
const ps1bsp_leaf_t *leaf = &world->leaves[~nodeIdx]; |
|
|
|
// if (!frustum_sphereInside(&leaf->boundingSphere)) // TODO: not sure if it's actually faster to do all these additional frustum checks |
|
|
|
// return; |
|
|
|
|
|
|
|
u_long frameNum = time_getFrameNumber(); |
|
|
|
const u_short *leafFace = &world->leafFaces[leaf->firstLeafFace]; |
|
|
|
|
|
|
|
for (u_short leafFaceIdx = 0; leafFaceIdx < leaf->numLeafFaces; ++leafFaceIdx, ++leafFace) |
|
|
|
|