Skip to content

Commit

Permalink
rsx: Improve vblank accuracy
Browse files Browse the repository at this point in the history
no more 30.0/1x or 29.8/9x frame rate spikes, range of error is reduced to what it seems as 0.02 at max.
  • Loading branch information
elad335 committed Mar 15, 2019
1 parent 67c35cf commit 8a83d16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpcs3/Emu/RSX/RSXThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,14 @@ namespace rsx
thread_ctrl::notify(*intr_thread);
}

std::this_thread::sleep_for(16ms);
continue;
}

while (Emu.IsPaused() && !m_rsx_thread_exiting)
std::this_thread::sleep_for(10ms);
std::this_thread::sleep_for(16ms);

std::this_thread::sleep_for(1ms); // hack
std::this_thread::yield();
}
});

Expand Down

0 comments on commit 8a83d16

Please sign in to comment.