From 212bc9c0b38414a63cbe582d4e70fe7c12c452d1 Mon Sep 17 00:00:00 2001 From: minerjr Date: Fri, 7 Nov 2025 11:56:43 -0400 Subject: [PATCH] Fix animated textures from stopping. This prevents animated textures that are still a valid size from stop animating. Off screen textures will stop so if turned fast, there may be a slight stutter until the face's virtual size has been updated. --- indra/newview/llface.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llface.h b/indra/newview/llface.h index 651a4167e0..febb367d1b 100644 --- a/indra/newview/llface.h +++ b/indra/newview/llface.h @@ -52,7 +52,12 @@ class LLDrawInfo; class LLMeshSkinInfo; const F32 MIN_ALPHA_SIZE = 1024.f; -const F32 MIN_TEX_ANIM_SIZE = 512.f; +// +//const F32 MIN_TEX_ANIM_SIZE = 512.f; +// Reduce the cut off point of the animated textures down to the size when textures get discarded/set to invalid size. +// This should prevent "on screen" animated textures from stopping. +const F32 MIN_TEX_ANIM_SIZE = 16.f; +// const U8 FACE_DO_NOT_BATCH_TEXTURES = 255; class alignas(16) LLFace