X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fvis.c;h=e9d36c4748fdec1ddd01082b08bb8c309176566c;hb=e8fcd30f80784b8b87e3b6808447c9711be7e233;hp=566706a9e8c08585956e353478c3dfdfd3f9b7f6;hpb=3aca84b7e55ab6d79b30bb6b2ad5d97cfd8fde30;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index 566706a9..e9d36c47 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); } @@ -310,8 +310,9 @@ CalcVis */ void CalcVis (void) { - int i; + int i, minvis, maxvis; const char *value; + double mu, sigma, totalvis, totalvis2; /* ydnar: rr2do2's farplane code */ @@ -357,9 +358,34 @@ void CalcVis (void) Sys_Printf("creating leaf vis...\n"); for (i=0 ; i