overlays: don't flip if the overlay is invisible

This commit is contained in:
Megamouse 2023-01-22 01:10:19 +01:00
parent d1a950d59f
commit 1e6c180690

View File

@ -401,6 +401,11 @@ namespace rsx
void overlay::refresh() const
{
if (!visible)
{
return;
}
if (auto rsxthr = rsx::get_current_renderer(); rsxthr &&
(min_refresh_duration_us + rsxthr->last_host_flip_timestamp) < rsx::uclock())
{