System: Fix regtest dumping
This commit is contained in:
parent
1565a2667d
commit
60ee17e713
|
@ -99,8 +99,8 @@ void ResizeDisplayWindow(s32 width, s32 height, float scale);
|
||||||
/// Destroys any active rendering device.
|
/// Destroys any active rendering device.
|
||||||
void ReleaseGPUDevice();
|
void ReleaseGPUDevice();
|
||||||
|
|
||||||
/// Called before drawing the OSD and other display elements.
|
/// Called at the end of the frame, before presentation.
|
||||||
void BeginPresentFrame();
|
void FrameDone();
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
/// Retrieves the base settings layer. Must call with lock held.
|
/// Retrieves the base settings layer. Must call with lock held.
|
||||||
|
|
|
@ -1918,6 +1918,8 @@ void System::FrameDone()
|
||||||
PollDiscordPresence();
|
PollDiscordPresence();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Host::FrameDone();
|
||||||
|
|
||||||
if (s_frame_step_request)
|
if (s_frame_step_request)
|
||||||
{
|
{
|
||||||
s_frame_step_request = false;
|
s_frame_step_request = false;
|
||||||
|
@ -2847,8 +2849,7 @@ void System::UpdateSpeedLimiterState()
|
||||||
g_settings.turbo_speed :
|
g_settings.turbo_speed :
|
||||||
(s_fast_forward_enabled ? g_settings.fast_forward_speed : g_settings.emulation_speed);
|
(s_fast_forward_enabled ? g_settings.fast_forward_speed : g_settings.emulation_speed);
|
||||||
s_throttler_enabled = (s_target_speed != 0.0f);
|
s_throttler_enabled = (s_target_speed != 0.0f);
|
||||||
s_optimal_frame_pacing = (s_throttler_enabled && g_settings.display_optimal_frame_pacing) ||
|
s_optimal_frame_pacing = (s_throttler_enabled && g_settings.display_optimal_frame_pacing);
|
||||||
g_gpu_device->GetWindowInfo().IsSurfaceless(); // surfaceless check for regtest
|
|
||||||
s_skip_presenting_duplicate_frames = s_throttler_enabled && g_settings.display_skip_presenting_duplicate_frames;
|
s_skip_presenting_duplicate_frames = s_throttler_enabled && g_settings.display_skip_presenting_duplicate_frames;
|
||||||
s_pre_frame_sleep = s_optimal_frame_pacing && g_settings.display_pre_frame_sleep;
|
s_pre_frame_sleep = s_optimal_frame_pacing && g_settings.display_pre_frame_sleep;
|
||||||
s_can_sync_to_host = false;
|
s_can_sync_to_host = false;
|
||||||
|
@ -5153,8 +5154,6 @@ void System::HostDisplayResized()
|
||||||
|
|
||||||
bool System::PresentDisplay(bool skip_present, bool explicit_present)
|
bool System::PresentDisplay(bool skip_present, bool explicit_present)
|
||||||
{
|
{
|
||||||
Host::BeginPresentFrame();
|
|
||||||
|
|
||||||
// acquire for IO.MousePos.
|
// acquire for IO.MousePos.
|
||||||
std::atomic_thread_fence(std::memory_order_acquire);
|
std::atomic_thread_fence(std::memory_order_acquire);
|
||||||
|
|
||||||
|
|
|
@ -1770,7 +1770,7 @@ void EmuThread::run()
|
||||||
moveToThread(m_ui_thread);
|
moveToThread(m_ui_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host::BeginPresentFrame()
|
void Host::FrameDone()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -345,7 +345,7 @@ void Host::ReleaseRenderWindow()
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host::BeginPresentFrame()
|
void Host::FrameDone()
|
||||||
{
|
{
|
||||||
const u32 frame = System::GetFrameNumber();
|
const u32 frame = System::GetFrameNumber();
|
||||||
if (s_frame_dump_interval > 0 && (s_frame_dump_interval == 1 || (frame % s_frame_dump_interval) == 0))
|
if (s_frame_dump_interval > 0 && (s_frame_dump_interval == 1 || (frame % s_frame_dump_interval) == 0))
|
||||||
|
|
Loading…
Reference in New Issue