mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
rsx/gui: Delay game window pop-up until first frame
This commit is contained in:
parent
00ff53499a
commit
79513f06a4
6 changed files with 10 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue