overlays: don't flip if the overlay is invisible
This commit is contained in:
@@ -401,6 +401,11 @@ namespace rsx
|
|||||||
|
|
||||||
void overlay::refresh() const
|
void overlay::refresh() const
|
||||||
{
|
{
|
||||||
|
if (!visible)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (auto rsxthr = rsx::get_current_renderer(); rsxthr &&
|
if (auto rsxthr = rsx::get_current_renderer(); rsxthr &&
|
||||||
(min_refresh_duration_us + rsxthr->last_host_flip_timestamp) < rsx::uclock())
|
(min_refresh_duration_us + rsxthr->last_host_flip_timestamp) < rsx::uclock())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user