diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-02 23:38:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 23:38:28 +0200 |
commit | 95ceae40e6f4806a1bf00913315ed22bd2842854 (patch) | |
tree | e1054aaadcfd0db9904835a3bf6ab80bf37d673c /src/yuzu_cmd/yuzu.cpp | |
parent | Merge pull request #10479 from GPUCode/format-list (diff) | |
parent | core_timing: Remove GetCurrentTimerResolution in CoreTiming loop (diff) | |
download | yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar.gz yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar.bz2 yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar.lz yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar.xz yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.tar.zst yuzu-95ceae40e6f4806a1bf00913315ed22bd2842854.zip |
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 7b6d49c63..d0433ffc6 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -21,6 +21,7 @@ #include "common/string_util.h" #include "common/telemetry.h" #include "core/core.h" +#include "core/core_timing.h" #include "core/cpu_manager.h" #include "core/crypto/key_manager.h" #include "core/file_sys/registered_cache.h" @@ -316,8 +317,6 @@ int main(int argc, char** argv) { #ifdef _WIN32 LocalFree(argv_w); - - Common::Windows::SetCurrentTimerResolutionToMaximum(); #endif MicroProfileOnThreadCreate("EmuThread"); @@ -351,6 +350,11 @@ int main(int argc, char** argv) { break; } +#ifdef _WIN32 + Common::Windows::SetCurrentTimerResolutionToMaximum(); + system.CoreTiming().SetTimerResolutionNs(Common::Windows::GetCurrentTimerResolution()); +#endif + system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); |