rsx: Allow native UI render even when we have pending draw calls if FIFO queue is empty.

This commit is contained in:
kd-11 2024-01-30 02:06:08 +03:00 committed by kd-11
parent af8d308a69
commit c3c73c7e24
2 changed files with 4 additions and 2 deletions

View file

@ -1070,7 +1070,8 @@ void GLGSRender::do_local_task(rsx::FIFO::state state)
if (m_overlay_manager)
{
if (!in_begin_end && async_flip_requested & flip_request::native_ui && !is_stopped())
const auto should_ignore = in_begin_end && state != rsx::FIFO::state::empty;
if ((async_flip_requested & flip_request::native_ui) && !should_ignore && !is_stopped())
{
rsx::display_flip_info_t info{};
info.buffer = current_display_buffer;

View file

@ -1968,7 +1968,8 @@ void VKGSRender::do_local_task(rsx::FIFO::state state)
if (m_overlay_manager)
{
if (!in_begin_end && async_flip_requested & flip_request::native_ui && !is_stopped())
const auto should_ignore = in_begin_end && state != rsx::FIFO::state::empty;
if ((async_flip_requested & flip_request::native_ui) && !should_ignore && !is_stopped())
{
flush_command_queue(true);
rsx::display_flip_info_t info{};