Add gl_meshcache cvar for toggling it on and off
This commit is contained in:
parent
a5a0279fd2
commit
2d335d0f97
2 changed files with 28 additions and 12 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
EXTERN_CVAR(Bool, gl_texture)
|
||||
EXTERN_CVAR(Float, gl_mask_threshold)
|
||||
EXTERN_CVAR(Bool, gl_meshcache)
|
||||
|
||||
HWMeshCache meshcache;
|
||||
|
||||
|
|
@ -21,6 +22,9 @@ void HWMeshCache::Clear()
|
|||
|
||||
void HWMeshCache::Update(FRenderViewpoint& vp)
|
||||
{
|
||||
if (!gl_meshcache)
|
||||
return;
|
||||
|
||||
auto level = vp.ViewLevel;
|
||||
unsigned int count = level->sectors.Size();
|
||||
Sectors.Resize(count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue