mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 13:48:40 +00:00
Use GetSystemTimePreciseAsFileTime to fix fps timing issues (#1344)
-ws
This commit is contained in:
@@ -148,7 +148,7 @@ int PS4_SYSV_ABI sceKernelGettimeofday(OrbisKernelTimeval* tp) {
|
|||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
FILETIME filetime;
|
FILETIME filetime;
|
||||||
GetSystemTimeAsFileTime(&filetime);
|
GetSystemTimePreciseAsFileTime(&filetime);
|
||||||
|
|
||||||
constexpr u64 UNIX_TIME_START = 0x295E9648864000;
|
constexpr u64 UNIX_TIME_START = 0x295E9648864000;
|
||||||
constexpr u64 TICKS_PER_SECOND = 1000000;
|
constexpr u64 TICKS_PER_SECOND = 1000000;
|
||||||
|
|||||||
Reference in New Issue
Block a user