diff options
| author | BeaR <cinaera@web.de> | 2012-10-14 14:04:48 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2013-02-24 18:23:06 +0100 |
| commit | d58afefaae99f239151483025e516e8da5b6dd17 (patch) | |
| tree | 3af78094b1cbb5a9b8824aecf44e1b7e742d3181 /src/engine/client/graphics_threaded.cpp | |
| parent | 0be51ca98aec2f44cd01a5bf7c3a78fdfd78ea3d (diff) | |
| download | zcatch-d58afefaae99f239151483025e516e8da5b6dd17.tar.gz zcatch-d58afefaae99f239151483025e516e8da5b6dd17.zip | |
Some graphic batching:
Speed up for displaying debugtext and envelopepreview (This reduces the performance hit especially for the 'Show Info' mode in the editor) Conflicts: src/engine/client/client.cpp src/game/editor/editor.cpp src/game/editor/editor.h
Diffstat (limited to 'src/engine/client/graphics_threaded.cpp')
| -rw-r--r-- | src/engine/client/graphics_threaded.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/engine/client/graphics_threaded.cpp b/src/engine/client/graphics_threaded.cpp index 7a2687c5..8a3e4f50 100644 --- a/src/engine/client/graphics_threaded.cpp +++ b/src/engine/client/graphics_threaded.cpp @@ -629,13 +629,10 @@ void CGraphics_Threaded::QuadsDrawFreeform(const CFreeformItem *pArray, int Num) AddVertices(4*Num); } -void CGraphics_Threaded::QuadsText(float x, float y, float Size, float r, float g, float b, float a, const char *pText) +void CGraphics_Threaded::QuadsText(float x, float y, float Size, const char *pText) { float StartX = x; - QuadsBegin(); - SetColor(r,g,b,a); - while(*pText) { char c = *pText; @@ -659,8 +656,6 @@ void CGraphics_Threaded::QuadsText(float x, float y, float Size, float r, float x += Size/2; } } - - QuadsEnd(); } int CGraphics_Threaded::IssueInit() |