From 35a14572bef507bf8e2c4ff53d65d107cd76bcc3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 21 Sep 2002 03:51:50 +0000 Subject: [PATCH] report on the non-reliability of c_chains when threads are used --- tools/qfvis/source/flow.c | 2 +- tools/qfvis/source/qfvis.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/qfvis/source/flow.c b/tools/qfvis/source/flow.c index e3e042d2e..11470fa3a 100644 --- a/tools/qfvis/source/flow.c +++ b/tools/qfvis/source/flow.c @@ -217,7 +217,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack) portal_t *p; plane_t backplane; winding_t *source, *target; - + c_chains++; leaf = &leafs[leafnum]; diff --git a/tools/qfvis/source/qfvis.c b/tools/qfvis/source/qfvis.c index 81147faac..05dd52d61 100644 --- a/tools/qfvis/source/qfvis.c +++ b/tools/qfvis/source/qfvis.c @@ -847,7 +847,8 @@ main (int argc, char **argv) CalcVis (); if (options.verbosity >= 0) - printf ("c_chains: %i\n", c_chains); + printf ("c_chains: %i%s\n", c_chains, + options.threads > 1 ? " (not reliable)" :""); BSP_AddVisibility (bsp, visdata->str, visdata->size); if (options.verbosity >= 0)