rsx/gui: Delay game window pop-up until first frame

This commit is contained in:
Eladash 2021-01-21 18:16:08 +02:00 committed by kd-11
parent 00ff53499a
commit 79513f06a4
6 changed files with 10 additions and 12 deletions

View file

@ -301,7 +301,7 @@ bool gs_frame::shown()
void gs_frame::hide()
{
Emu.CallAfter([this]() {QWindow::hide(); });
Emu.CallAfter([this]() { QWindow::hide(); });
}
void gs_frame::show()
@ -399,6 +399,14 @@ void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
{
static Timer fps_t;
if (!m_flip_showed_frame)
{
// Show on first flip
m_flip_showed_frame = true;
show();
fps_t.Start();
}
++m_frames;
if (fps_t.GetElapsedTimeInSec() >= 0.5)