summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2022-11-10 23:12:39 -0800
committerGravatar GitHub2022-11-10 23:12:39 -0800
commit5eb30c7827959075cd240f39c6ab57d2c2a8197e (patch)
tree02667b005c300cadac48ba8d74ba79106231c2ba
parentir/texture_pass: Use host_info instead of querying Settings::values (#9176) (diff)
parentMe likes (diff)
downloadyuzu-5eb30c7827959075cd240f39c6ab57d2c2a8197e.tar.gz
yuzu-5eb30c7827959075cd240f39c6ab57d2c2a8197e.tar.xz
yuzu-5eb30c7827959075cd240f39c6ab57d2c2a8197e.zip
Merge pull request #9223 from goldenx86/threadcount
Add CPU thread count to log files
-rw-r--r--src/yuzu/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c27f8196d..01a002e4f 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -342,6 +342,7 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
342 const auto override_build = 342 const auto override_build =
343 fmt::format(fmt::runtime(std::string(Common::g_title_bar_format_idle)), build_id); 343 fmt::format(fmt::runtime(std::string(Common::g_title_bar_format_idle)), build_id);
344 const auto yuzu_build_version = override_build.empty() ? yuzu_build : override_build; 344 const auto yuzu_build_version = override_build.empty() ? yuzu_build : override_build;
345 const auto processor_count = std::thread::hardware_concurrency();
345 346
346 LOG_INFO(Frontend, "yuzu Version: {}", yuzu_build_version); 347 LOG_INFO(Frontend, "yuzu Version: {}", yuzu_build_version);
347 LogRuntimes(); 348 LogRuntimes();
@@ -361,6 +362,7 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
361 } 362 }
362 LOG_INFO(Frontend, "Host CPU: {}", cpu_string); 363 LOG_INFO(Frontend, "Host CPU: {}", cpu_string);
363#endif 364#endif
365 LOG_INFO(Frontend, "Host CPU Threads: {}", processor_count);
364 LOG_INFO(Frontend, "Host OS: {}", PrettyProductName().toStdString()); 366 LOG_INFO(Frontend, "Host OS: {}", PrettyProductName().toStdString());
365 LOG_INFO(Frontend, "Host RAM: {:.2f} GiB", 367 LOG_INFO(Frontend, "Host RAM: {:.2f} GiB",
366 Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB}); 368 Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB});