Now using a buffer for debug console output. No longer bog-slow on windows if the console is enabled.

This commit is contained in:
Shyotl
2011-02-28 01:38:05 -06:00
parent 56f4fb3d55
commit 8c0fb1261c
4 changed files with 7 additions and 2 deletions

View File

@@ -165,6 +165,9 @@ namespace {
}
}
fprintf(stderr, "%s\n", message.c_str());
#if LL_WINDOWS
fflush(stderr); //Now using a buffer. flush is required.
#endif
if (ANSI_YES == mUseANSI) colorANSI("0"); // reset
}