Skip to content

Commit

Permalink
Use GetSystemTimePreciseAsFileTime to fix fps timing issues (shadps4-…
Browse files Browse the repository at this point in the history
  • Loading branch information
adjonesey authored Oct 11, 2024
1 parent 169b641 commit cd085ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/libraries/kernel/time_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int PS4_SYSV_ABI sceKernelGettimeofday(OrbisKernelTimeval* tp) {

#ifdef _WIN64
FILETIME filetime;
GetSystemTimeAsFileTime(&filetime);
GetSystemTimePreciseAsFileTime(&filetime);

constexpr u64 UNIX_TIME_START = 0x295E9648864000;
constexpr u64 TICKS_PER_SECOND = 1000000;
Expand Down

0 comments on commit cd085ea

Please sign in to comment.