Merge branch 'master' of Skyth/PD-Loader into master

This commit is contained in:
nastys
2019-08-29 18:01:24 +00:00
committed by Gogs
@@ -100,12 +100,13 @@ microseconds expectedFrameDuration(1000000 / nFpsLimit);
__int64 __fastcall hookedEngineUpdate(__int64 a1) __int64 __fastcall hookedEngineUpdate(__int64 a1)
{ {
if (high_resolution_clock::now() < nextUpdate) const auto beforeUpdate = high_resolution_clock::now();
if (beforeUpdate < nextUpdate)
return 0; return 0;
const auto result = divaEngineUpdate(a1); const auto result = divaEngineUpdate(a1);
nextUpdate = high_resolution_clock::now() + expectedFrameDuration; nextUpdate = beforeUpdate + expectedFrameDuration;
return result; return result;
} }