mirror of
https://github.com/glest/glest-source.git
synced 2025-08-08 17:36:30 +02:00
- added a more proper #define setup to completely stub out debugging to test performance
(simply uncomment #define UNDEF_DEBUG and the debug statements become nothing) - Added piles of experimental changes for testing different performance scenarios (all of these changes are turned off by default and will most likely eventually be removed)
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
using std::string;
|
||||
using namespace Shared::Platform;
|
||||
|
||||
//#define UNDEF_DEBUG
|
||||
|
||||
namespace Shared{ namespace Util{
|
||||
|
||||
class SystemFlags
|
||||
@@ -103,7 +105,21 @@ public:
|
||||
|
||||
static void init();
|
||||
static SystemFlagsType & getSystemSettingType(DebugType type) { return debugLogFileList[type]; }
|
||||
static void OutputDebug(DebugType type, const char *fmt, ...);
|
||||
|
||||
// Let the macro call into this when require.. NEVER call it automatically.
|
||||
static void handleDebug(DebugType type, const char *fmt, ...);
|
||||
|
||||
#ifndef UNDEF_DEBUG
|
||||
|
||||
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
|
||||
|
||||
#else
|
||||
|
||||
// stub out debugging completely
|
||||
#define OutputDebug(type, fmt, ...) type
|
||||
|
||||
#endif
|
||||
|
||||
static void Close();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user