diff options
| author | oy <Tom_Adams@web.de> | 2010-10-16 10:32:56 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-16 10:32:56 +0200 |
| commit | 5f7efb465e21ec65b8f026a5d68559f7fce60a21 (patch) | |
| tree | f02b4299a74b43c594ef00951c801393d09708a1 /src/game/client/components/console.h | |
| parent | 764ee3fd179e220a43be6ebf2827c385a6f89dee (diff) | |
| download | zcatch-5f7efb465e21ec65b8f026a5d68559f7fce60a21.tar.gz zcatch-5f7efb465e21ec65b8f026a5d68559f7fce60a21.zip | |
optimised console rendering a bit
Diffstat (limited to 'src/game/client/components/console.h')
| -rw-r--r-- | src/game/client/components/console.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/client/components/console.h b/src/game/client/components/console.h index ae05aa8b..c126f6d8 100644 --- a/src/game/client/components/console.h +++ b/src/game/client/components/console.h @@ -9,7 +9,12 @@ class CGameConsole : public CComponent class CInstance { public: - TStaticRingBuffer<char, 64*1024, CRingBufferBase::FLAG_RECYCLE> m_Backlog; + struct CBacklogEntry + { + float m_YOffset; + char m_aText[1]; + }; + TStaticRingBuffer<CBacklogEntry, 64*1024, CRingBufferBase::FLAG_RECYCLE> m_Backlog; TStaticRingBuffer<char, 64*1024, CRingBufferBase::FLAG_RECYCLE> m_History; char *m_pHistoryEntry; |