Reintroduce lm_max_updates

This commit is contained in:
RaveYard 2023-09-16 12:18:02 +02:00 committed by Magnus Norddahl
commit 4e7e1d772b
3 changed files with 6 additions and 3 deletions

View file

@ -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)
{