summaryrefslogtreecommitdiff
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-12 02:19:44 -0300
committerGravatar Yuri Kunde Schlesner2015-05-12 02:31:04 -0300
commitb88c91dd3d03f1a452cdd48f0db4e010cb150753 (patch)
tree17ddf674e020be69d03cc1c3c49c3e041377603b /src/citra_qt/main.cpp
parentMerge pull request #748 from Subv/tls_max (diff)
downloadyuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.gz
yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.xz
yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.zip
Common: Remove async logging
It provided a large increase in complexity of the logging system while having a negligible performance impact: the usage patterns of the ring buffer meant that each log contended with the logging thread, causing it to effectively act as a synchronous extra buffering. Also removed some broken code related to filtering of subclasses which was broken since it was introduced. (Which means no one ever used that feature anyway, since, 8 months later, no one ever complained.)
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index f115c5b6a..bb7acf61b 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -350,14 +350,8 @@ void GMainWindow::closeEvent(QCloseEvent* event)
350 350
351int main(int argc, char* argv[]) 351int main(int argc, char* argv[])
352{ 352{
353 std::shared_ptr<Log::Logger> logger = Log::InitGlobalLogger();
354 Log::Filter log_filter(Log::Level::Info); 353 Log::Filter log_filter(Log::Level::Info);
355 Log::SetFilter(&log_filter); 354 Log::SetFilter(&log_filter);
356 std::thread logging_thread(Log::TextLoggingLoop, logger);
357 SCOPE_EXIT({
358 logger->Close();
359 logging_thread.join();
360 });
361 355
362 QApplication::setAttribute(Qt::AA_X11InitThreads); 356 QApplication::setAttribute(Qt::AA_X11InitThreads);
363 QApplication app(argc, argv); 357 QApplication app(argc, argv);