diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-10 23:12:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 23:12:39 -0800 |
commit | 5eb30c7827959075cd240f39c6ab57d2c2a8197e (patch) | |
tree | 02667b005c300cadac48ba8d74ba79106231c2ba /src/yuzu/main.cpp | |
parent | c9bb888adf228a646ede2c99e8450207c612fe42 (diff) | |
parent | 0c176ce82833906ded6ef1973cbc201a14962a48 (diff) |
Merge pull request #9223 from goldenx86/threadcount
Add CPU thread count to log files
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c27f8196d3..01a002e4f3 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 const auto override_build = fmt::format(fmt::runtime(std::string(Common::g_title_bar_format_idle)), build_id); const auto yuzu_build_version = override_build.empty() ? yuzu_build : override_build; + const auto processor_count = std::thread::hardware_concurrency(); LOG_INFO(Frontend, "yuzu Version: {}", yuzu_build_version); LogRuntimes(); @@ -361,6 +362,7 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan } LOG_INFO(Frontend, "Host CPU: {}", cpu_string); #endif + LOG_INFO(Frontend, "Host CPU Threads: {}", processor_count); LOG_INFO(Frontend, "Host OS: {}", PrettyProductName().toStdString()); LOG_INFO(Frontend, "Host RAM: {:.2f} GiB", Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB}); |