Cube  Diff

Differences From Artifact [37acc1d08b]:

To Artifact [ae30288fea]:


314
315
316
317
318
319
320

321

322
323
324
325
326
327
328
314
315
316
317
318
319
320
321

322
323
324
325
326
327
328
329







+
-
+







// does some out of date view frustrum optimisation that doesn't contribute much
// anymore

void
render_world(
    float vx, float vy, float vh, int yaw, int pitch, float fov, int w, int h)
{
	for (int i = 0; i < LARGEST_FACTOR; i++)
	loopi(LARGEST_FACTOR) stats[i] = 0;
		stats[i] = 0;
	min_lod = MIN_LOD + abs(pitch) / 12;
	yaw = 360 - yaw;
	float widef = fov / 75.0f;
	int cdist = abs(yaw % 90 - 45);
	// hack to avoid popup at high fovs at 45 yaw
	if (cdist < 7) {
		// less if lod worked better