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.
master
minerjr 2025-11-07 11:56:43 -04:00
parent 334283bc67
commit 212bc9c0b3
1 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@ class LLDrawInfo;
class LLMeshSkinInfo;
const F32 MIN_ALPHA_SIZE = 1024.f;
const F32 MIN_TEX_ANIM_SIZE = 512.f;
// <FS:minerjr>
//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;
// </FS:minerjr>
const U8 FACE_DO_NOT_BATCH_TEXTURES = 255;
class alignas(16) LLFace