overlays: Fix frame timing

This commit is contained in:
kd-11 2022-04-13 20:07:20 +03:00 committed by kd-11
parent ccd4724263
commit 89de1a8cf6

View file

@ -4,6 +4,7 @@
#include "Input/pad_thread.h"
#include "Emu/Io/interception.h"
#include "Emu/RSX/RSXThread.h"
#include "Emu/RSX/Common/time.hpp"
LOG_CHANNEL(overlays);
@ -327,7 +328,7 @@ namespace rsx
{
if (auto rsxthr = rsx::get_current_renderer())
{
const auto now = get_system_time() - 1000000;
const auto now = rsx::uclock() - 1000000;
if ((now - rsxthr->last_flip_time) > min_refresh_duration_us)
{
rsxthr->async_flip_requested |= rsx::thread::flip_request::native_ui;