aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/perfvisualbenchmark.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/perfvisualbenchmark.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/perfvisualbenchmark.h')
-rw-r--r--mp/src/game/client/perfvisualbenchmark.h130
1 files changed, 65 insertions, 65 deletions
diff --git a/mp/src/game/client/perfvisualbenchmark.h b/mp/src/game/client/perfvisualbenchmark.h
index 09b843b7..7714b527 100644
--- a/mp/src/game/client/perfvisualbenchmark.h
+++ b/mp/src/game/client/perfvisualbenchmark.h
@@ -1,65 +1,65 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-
-#if !defined PERFVISUALBENCHMARK_H
-#define PERFVISUALBENCHMARK_H
-
-#define FPS_STABILIZE_TIME 1.5
-#define FPS_STABILIZE_TIME_RELOAD_MATERIALS 10.0
-#define FPS_MEASURE_TIME 2.0
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <igameevents.h>
-#include <igamesystem.h>
-
-class CPerfVisualBenchmark : public CBaseGameSystemPerFrame
-{
-
-public:
- CPerfVisualBenchmark();
- virtual ~CPerfVisualBenchmark();
-
-public: // CBaseGameSystem overrides
-
- virtual char const *Name() { return "CPerfVisualBenchmark"; }
-
- virtual bool Init();
- virtual void PreRender( );
-
- void Start();
- void Stop();
-
-private:
- void Print();
- struct RunInfo_t
- {
- const char *m_pVarName;
- const char *m_pOnVal;
- const char *m_pOffVal;
- const char *m_pDescription;
- float m_flStabilizeTime;
- float m_flFPS;
- };
-
-private:
- CUtlVector<RunInfo_t> m_RunInfo;
- bool m_bIsOn; //is this thing on?
- int m_iCurVar; //what convar are we at?
- float m_flTimer; //time since we started measuring the current convar
- float m_flStartMeasureTime;
- int m_nStartFrameCount;
- bool m_bSaveMouseEnable; // remember this so that we can reset it after the benchmark
- bool m_bWaiting;
-};
-
-extern IGameSystem* PerfVisualBenchmark();
-
-#endif // PERFVISUALBENCHMARK_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+
+#if !defined PERFVISUALBENCHMARK_H
+#define PERFVISUALBENCHMARK_H
+
+#define FPS_STABILIZE_TIME 1.5
+#define FPS_STABILIZE_TIME_RELOAD_MATERIALS 10.0
+#define FPS_MEASURE_TIME 2.0
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <igameevents.h>
+#include <igamesystem.h>
+
+class CPerfVisualBenchmark : public CBaseGameSystemPerFrame
+{
+
+public:
+ CPerfVisualBenchmark();
+ virtual ~CPerfVisualBenchmark();
+
+public: // CBaseGameSystem overrides
+
+ virtual char const *Name() { return "CPerfVisualBenchmark"; }
+
+ virtual bool Init();
+ virtual void PreRender( );
+
+ void Start();
+ void Stop();
+
+private:
+ void Print();
+ struct RunInfo_t
+ {
+ const char *m_pVarName;
+ const char *m_pOnVal;
+ const char *m_pOffVal;
+ const char *m_pDescription;
+ float m_flStabilizeTime;
+ float m_flFPS;
+ };
+
+private:
+ CUtlVector<RunInfo_t> m_RunInfo;
+ bool m_bIsOn; //is this thing on?
+ int m_iCurVar; //what convar are we at?
+ float m_flTimer; //time since we started measuring the current convar
+ float m_flStartMeasureTime;
+ int m_nStartFrameCount;
+ bool m_bSaveMouseEnable; // remember this so that we can reset it after the benchmark
+ bool m_bWaiting;
+};
+
+extern IGameSystem* PerfVisualBenchmark();
+
+#endif // PERFVISUALBENCHMARK_H