about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-04-22 19:19:31 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-04-22 19:19:31 +0200
commit65d83bb6f4da7d69bb8fba9ff530d3a32ca8fdc6 (patch)
tree3d32a27128918b1ef0b3064276c0da8688c182d2 /src/core.c
parent17b7ec6358b58fc887135be78d368642397fc839 (diff)
downloadbox64-65d83bb6f4da7d69bb8fba9ff530d3a32ca8fdc6.tar.gz
box64-65d83bb6f4da7d69bb8fba9ff530d3a32ca8fdc6.zip
Autocalibrate RDTSC clock to 1GHz minimum, instead of 500MHz (helps HorizonZeroDawn speed)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 187e5395..2e701d42 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1052,7 +1052,7 @@ void LoadLogEnv()
         freq = ReadTSCFrequency(NULL);
     }
     uint64_t efreq = freq;
-    while(efreq<500000000) {    // minium 500MHz
+    while(efreq<1000000000) {    // minium 1GHz
         ++box64_rdtsc_shift;
         efreq = freq<<box64_rdtsc_shift;
     }