- added option to log debug info using a worker thread, by default logging is NOT threaded. To enable:

ThreadedLogging=true
This commit is contained in:
Mark Vejvoda
2010-12-23 19:47:40 +00:00
parent c0c70217dc
commit 809d56e86c
5 changed files with 280 additions and 14 deletions

View File

@@ -643,6 +643,8 @@ int glestMain(int argc, char** argv) {
return -1;
}
SystemFlags::ENABLE_THREADED_LOGGING = false;
SystemFlags::VERBOSE_MODE_ENABLED = false;
if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_VERBOSE_MODE]) == true) {
SystemFlags::VERBOSE_MODE_ENABLED = true;
@@ -780,7 +782,8 @@ int glestMain(int argc, char** argv) {
std::auto_ptr<FileCRCPreCacheThread> preCacheThread;
Config &config = Config::getInstance();
FontGl::setDefault_fontType(config.getString("DefaultFont",FontGl::getDefault_fontType().c_str()));
Socket::isUPNP = !config.getBool("DisableUPNP","false");
Socket::isUPNP = !config.getBool("DisableUPNP","false");
SystemFlags::ENABLE_THREADED_LOGGING = config.getBool("ThreadedLogging","false");
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);