diff options
author | Dave Parks <davep@lindenlab.com> | 2024-11-12 17:26:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 15:26:38 -0800 |
commit | 2b255535efbce4634cdd2c671f597774e1783372 (patch) | |
tree | 24be217e4002dcb9ee7d78df4d305a4740038a68 /indra/newview/llviewertexture.h | |
parent | 13c0708cc70078e5118dd88de57d4ffd52f85024 (diff) |
2590 mac intel and radeon pro 5300m horrible fps 2 (#3030)
* OpenGL 3.3 compatibility pass. Fix for FBO driven downscaling corrupting textures.
* Increase maximum texture bias, immediately scale down when textures are loaded higher resolution than desired
* #2590 Fix for some frame stalls on Intel Macs
Diffstat (limited to 'indra/newview/llviewertexture.h')
-rw-r--r-- | indra/newview/llviewertexture.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llviewertexture.h b/indra/newview/llviewertexture.h index 65fa633f81..1da8548573 100644 --- a/indra/newview/llviewertexture.h +++ b/indra/newview/llviewertexture.h @@ -410,6 +410,8 @@ public: /*virtual*/bool isActiveFetching() override; //is actively in fetching by the fetching pipeline. + virtual bool scaleDown() { return false; }; + bool mCreatePending = false; // if true, this is in gTextureList.mCreateTextureList mutable bool mDownScalePending = false; // if true, this is in gTextureList.mDownScaleQueue @@ -527,12 +529,12 @@ public: LLViewerLODTexture(const LLUUID& id, FTType f_type, const LLHost& host = LLHost(), bool usemipmaps = true); LLViewerLODTexture(const std::string& url, FTType f_type, const LLUUID& id, bool usemipmaps = true); - /*virtual*/ S8 getType() const; + S8 getType() const override; // Process image stats to determine priority/quality requirements. - /*virtual*/ void processTextureStats(); + void processTextureStats() override; bool isUpdateFrozen() ; - bool scaleDown(); + bool scaleDown() override; private: void init(bool firstinit) ; |