From 4ae1de1f8a78d795958d67afab8356f9a13f707d Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 28 Aug 2024 23:05:58 +0300 Subject: viewer#2411 LLFontGL::render optimizations --- indra/newview/llhudnametag.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/llhudnametag.h') diff --git a/indra/newview/llhudnametag.h b/indra/newview/llhudnametag.h index 5cb7fa877e..ee315f47af 100644 --- a/indra/newview/llhudnametag.h +++ b/indra/newview/llhudnametag.h @@ -37,6 +37,7 @@ #include "llrect.h" //#include "llframetimer.h" #include "llfontgl.h" +#include "llfontvertexbuffer.h" #include #include @@ -67,6 +68,8 @@ protected: LLColor4 mColor; LLFontGL::StyleFlags mStyle; const LLFontGL* mFont; + LLFontVertexBuffer mFontBufferLabel; + LLFontVertexBuffer mFontBufferText; private: LLWString mText; std::map mFontWidthMap; -- cgit v1.2.3 From a638d9610d9f369eca6dff74e8860ca466c253c7 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Thu, 29 Aug 2024 18:49:10 +0300 Subject: viewer#2411 LLFontGL::render optimizations #2 --- indra/newview/llhudnametag.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llhudnametag.h') diff --git a/indra/newview/llhudnametag.h b/indra/newview/llhudnametag.h index ee315f47af..b48a606982 100644 --- a/indra/newview/llhudnametag.h +++ b/indra/newview/llhudnametag.h @@ -177,6 +177,7 @@ private: S32 mMaxLines; S32 mOffsetY; F32 mRadius; + LLVector3 mLastRenderPosition; std::vector mTextSegments; std::vector mLabelSegments; // LLFrameTimer mResizeTimer; -- cgit v1.2.3 From 5c64e5e13d9a75cac510aac3128fc6ee780ab243 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 30 Aug 2024 18:51:48 +0300 Subject: viewer#2411 LLFontGL::render optimizations #3 --- indra/newview/llhudnametag.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview/llhudnametag.h') diff --git a/indra/newview/llhudnametag.h b/indra/newview/llhudnametag.h index b48a606982..0a882ac273 100644 --- a/indra/newview/llhudnametag.h +++ b/indra/newview/llhudnametag.h @@ -59,7 +59,9 @@ protected: : mColor(color), mStyle(style), mText(text), - mFont(font) + mFont(font), + mFontBufferLabel(false), + mFontBufferText(false) {} F32 getWidth(const LLFontGL* font); const LLWString& getText() const { return mText; } -- cgit v1.2.3 From 4cc0edb189c4deaa205f986d20a6959aa83fb25c Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Mon, 2 Sep 2024 22:14:42 +0300 Subject: viewer#2411 Cleanup --- indra/newview/llhudnametag.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'indra/newview/llhudnametag.h') diff --git a/indra/newview/llhudnametag.h b/indra/newview/llhudnametag.h index 0a882ac273..b48a606982 100644 --- a/indra/newview/llhudnametag.h +++ b/indra/newview/llhudnametag.h @@ -59,9 +59,7 @@ protected: : mColor(color), mStyle(style), mText(text), - mFont(font), - mFontBufferLabel(false), - mFontBufferText(false) + mFont(font) {} F32 getWidth(const LLFontGL* font); const LLWString& getText() const { return mText; } -- cgit v1.2.3