git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9473
d7cf8633-e32d-0410-b094-
e92efae38249
+#define VIEWCACHEDYNAMIC 1
typedef struct r_refdef_viewcache_s
{
#ifdef VIEWCACHEDYNAMIC
typedef struct r_refdef_viewcache_s
{
#ifdef VIEWCACHEDYNAMIC
viewleaf = model->brush.PointInLeaf ? model->brush.PointInLeaf(model, r_refdef.view.origin) : NULL;
// if possible fetch the visible cluster bits
if (!r_lockpvs.integer && model->brush.FatPVS)
viewleaf = model->brush.PointInLeaf ? model->brush.PointInLeaf(model, r_refdef.view.origin) : NULL;
// if possible fetch the visible cluster bits
if (!r_lockpvs.integer && model->brush.FatPVS)
- model->brush.FatPVS(model, r_refdef.view.origin, 2, r_refdef.viewcache.world_pvsbits, sizeof(r_refdef.viewcache.world_pvsbits), false);
+ model->brush.FatPVS(model, r_refdef.view.origin, 2, r_refdef.viewcache.world_pvsbits, (r_refdef.viewcache.world_numclusters+7)>>3, false);
if (!r_lockvisibility.integer)
{
if (!r_lockvisibility.integer)
{