summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/yuzu.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-07-02 21:05:35 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-07-02 21:08:04 +0200
commitc3fbc8d2fe2ff423d774ed3886fc8391c730f637 (patch)
treef069809e0b2c5f033b016b267705e507a970ae88 /src/yuzu_cmd/yuzu.cpp
parentMerge pull request #10949 from t895/memory-requirements (diff)
downloadyuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.gz
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.bz2
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.lz
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.xz
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.tar.zst
yuzu-c3fbc8d2fe2ff423d774ed3886fc8391c730f637.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu_cmd/yuzu.cpp8
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());