Skip to content

Commit

Permalink
Fix last check-in
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Sep 7, 2023
1 parent 778223e commit ff791b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d3d9/IDirect3DDevice9Ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ void m_IDirect3DDevice9Ex::LimitFrameRate()
bool DoLoop;
do {
QueryPerformanceCounter(&Counter.ClickTime);
float DeltaPresentMS = ((Counter.ClickTime.QuadPart - Counter.LastPresentTime.QuadPart) * 10000.0f) / Counter.Frequency.QuadPart;
float DeltaPresentMS = ((Counter.ClickTime.QuadPart - Counter.LastPresentTime.QuadPart) * 1000.0f) / Counter.Frequency.QuadPart;

DoLoop = false;
if (Counter.FrequencyFlag && DeltaPresentMS < DelayTimeMS)
Expand Down

0 comments on commit ff791b1

Please sign in to comment.