From e6fa8d7f3c1edbfbd0c652dfe5bee7e3f9f24de2 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 23 Apr 2009 16:49:14 +0000 Subject: [PATCH] less spammy vis output git-svn-id: svn://svn.icculus.org/netradiant/trunk@325 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/q3map2.h | 3 --- tools/quake3/q3map2/vis.c | 28 ++++++++++++++++++++++------ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/tools/quake3/q3map2/q3map2.h b/tools/quake3/q3map2/q3map2.h index 689fe642..f78f45f2 100644 --- a/tools/quake3/q3map2/q3map2.h +++ b/tools/quake3/q3map2/q3map2.h @@ -2082,9 +2082,6 @@ Q_EXTERN qboolean hint; /* ydnar */ Q_EXTERN char inbase[ MAX_QPATH ]; Q_EXTERN char globalCelShader[ MAX_QPATH ]; -/* other bits */ -Q_EXTERN int totalvis; - Q_EXTERN float farPlaneDist; /* rr2do2, rf, mre, ydnar all contributed to this one... */ Q_EXTERN int numportals; diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index f4b20996..0e30b839 100644 --- a/tools/quake3/q3map2/vis.c +++ b/tools/quake3/q3map2/vis.c @@ -167,6 +167,7 @@ ClusterMerge Merges the portal visibility for a leaf =============== */ +static int clustersizehistogram[MAX_MAP_LEAFS] = {0}; void ClusterMerge (int leafnum) { leaf_t *leaf; @@ -212,9 +213,8 @@ void ClusterMerge (int leafnum) numvis++; // count the leaf itself - totalvis += numvis; - - Sys_FPrintf (SYS_VRB,"cluster %4i : %4i visible\n", leafnum, numvis); + //Sys_FPrintf (SYS_VRB,"cluster %4i : %4i visible\n", leafnum, numvis); + ++clustersizehistogram[numvis]; memcpy (bspVisBytes + VIS_HEADER_SIZE + leafnum*leafbytes, uncompressed, leafbytes); } @@ -312,6 +312,7 @@ void CalcVis (void) { int i; const char *value; + double mu, sigma, totalvis, totalvis2; /* ydnar: rr2do2's farplane code */ @@ -357,9 +358,24 @@ void CalcVis (void) Sys_Printf("creating leaf vis...\n"); for (i=0 ; i