diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-02 02:07:59 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-05 08:36:31 +0100 |
commit | 7e353082ac79bef59d48602f9196cf804d3dfc4f (patch) | |
tree | 78e010e8e0217e29f748686c1f99e79133d49a4b /src/yuzu/main.cpp | |
parent | wall_clock: Make use of SteadyClock (diff) | |
download | yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar.gz yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar.bz2 yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar.lz yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar.xz yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.tar.zst yuzu-7e353082ac79bef59d48602f9196cf804d3dfc4f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index f233b065e..c092507f4 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -91,6 +91,9 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual #include "common/microprofile.h" #include "common/scm_rev.h" #include "common/scope_exit.h" +#ifdef _WIN32 +#include "common/windows/timer_resolution.h" +#endif #ifdef ARCHITECTURE_x86_64 #include "common/x64/cpu_detect.h" #endif @@ -377,6 +380,12 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan LOG_INFO(Frontend, "Host RAM: {:.2f} GiB", Common::GetMemInfo().TotalPhysicalMemory / f64{1_GiB}); LOG_INFO(Frontend, "Host Swap: {:.2f} GiB", Common::GetMemInfo().TotalSwapMemory / f64{1_GiB}); +#ifdef _WIN32 + LOG_INFO(Frontend, "Host Timer Resolution: {:.4f} ms", + std::chrono::duration_cast<std::chrono::duration<f64, std::milli>>( + Common::Windows::SetCurrentTimerResolutionToMaximum()) + .count()); +#endif UpdateWindowTitle(); show(); |