[client/idd] network: preserve exact frame damage

This commit is contained in:
Geoffrey McRae
2026-10-08 14:18:46 +11:00
parent ae031f6064
commit ccff282cd0
14 changed files with 519 additions and 293 deletions

View File

@@ -147,7 +147,7 @@ typedef struct RenderQueueSwSurface
bool damageFull;
int damageCount;
KVMFRFrameDamageRect damage[LG_MAX_FRAME_DAMAGE_RECTS];
KVMFRFrameDamageRect damage[LG_MAX_RUNTIME_DAMAGE_RECTS];
bool updateQueued;
RenderCommand updateCommand;
@@ -361,7 +361,7 @@ static void swSurfaceDamageAdd(RenderQueueSwSurface * surface,
i = 0;
}
if (surface->damageCount < LG_MAX_FRAME_DAMAGE_RECTS)
if (surface->damageCount < LG_MAX_RUNTIME_DAMAGE_RECTS)
break;
int best = 0;