Search found 1 match
- 27 Aug 2022, 19:28
- Forum: Input Lag / Display Lag / Network Lag
- Topic: Replace QPC to RDTSC Timer in games
- Replies: 26
- Views: 36877
Re: Replace QPC to RDTSC Timer in games
i would like to update code so u guys get more game feeling by using the function QueryThreadCycleTime enjoy :D
LONGLONG GetFrequency(DWORD sleepTime)
{
LARGE_INTEGER fq, st, ed;
QueryPerformanceFrequency(&fq);
QueryPerformanceCounter(&st);
QueryThreadCycleTime(GetCurrentThread(), &st ...
