Reintroduce lm_max_updates
This commit is contained in:
parent
aec39ef90b
commit
4e7e1d772b
3 changed files with 6 additions and 3 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include "hw_drawlist.h"
|
||||
|
||||
EXTERN_CVAR(Bool, lm_always_update);
|
||||
EXTERN_CVAR(Int, lm_max_updates);
|
||||
|
||||
enum EDrawMode
|
||||
{
|
||||
|
|
@ -213,6 +214,10 @@ struct HWDrawInfo
|
|||
{
|
||||
surface->needsUpdate = true;
|
||||
}
|
||||
else if (VisibleSurfaces.Size() >= lm_max_updates)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (surface->needsUpdate && !surface->portalIndex && !surface->bSky)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue