diff --git a/src/poly/logging.cc b/src/poly/logging.cc index 1df990281..dfbf0dcf4 100644 --- a/src/poly/logging.cc +++ b/src/poly/logging.cc @@ -18,6 +18,7 @@ DEFINE_bool(fast_stdout, false, "Don't lock around stdout/stderr. May introduce weirdness."); +DEFINE_bool(flush_stdout, true, "Flush stdout after each log line."); DEFINE_bool(log_filenames, false, "Log filenames/line numbers in log statements."); @@ -82,7 +83,9 @@ void log_line(const char* file_path, const uint32_t line_number, OutputDebugStringA(log_buffer); #else fprintf(stdout, "%s", log_buffer); - fflush(stdout); + if (FLAGS_flush_stdout) { + fflush(stdout); + } #endif // OutputDebugString if (!FLAGS_fast_stdout) { log_lock.unlock(); diff --git a/src/xenia/gpu/graphics_system.cc b/src/xenia/gpu/graphics_system.cc index e6803eb1c..bb64d0e44 100644 --- a/src/xenia/gpu/graphics_system.cc +++ b/src/xenia/gpu/graphics_system.cc @@ -56,8 +56,8 @@ void GraphicsSystem::DispatchInterruptCallback(uint32_t source, uint32_t cpu) { cpu = 2; } - XELOGGPU("Dispatching GPU interrupt at %.8X w/ mode %d on cpu %d", - interrupt_callback_, source, cpu); + // XELOGGPU("Dispatching GPU interrupt at %.8X w/ mode %d on cpu %d", + // interrupt_callback_, source, cpu); // NOTE: we may be executing in some random thread. uint64_t args[] = {source, interrupt_callback_data_};