summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-09-19 16:09:58 -0400
committerGitHub <noreply@github.com>2021-09-19 16:09:58 -0400
commit57f71a55f8a0a9d1efe36868bc75db429afe4f07 (patch)
tree3f1cb38d576d5f2130feccd8f263181d9bafb140 /Source
parentca2589f7df2faaf0628a186ef87c6a413e51381a (diff)
parente5ed9ee920376258a6ab003691fe97a8734a62fa (diff)
Merge pull request #10110 from JosJuice/remove-request-refresh-info
Core: Remove s_request_refresh_info
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Core.cpp10
-rw-r--r--Source/Core/Core/Core.h1
2 files changed, 1 insertions, 10 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index c88b16fc9d..4e5fb461d7 100644
--- a/Source/Core/Core/Core.cpp
+++ b/Source/Core/Core/Core.cpp
@@ -107,7 +107,6 @@ static std::thread s_emu_thread;
static std::vector<StateChangedCallbackFunc> s_on_state_changed_callbacks;
static std::thread s_cpu_thread;
-static bool s_request_refresh_info = false;
static bool s_is_throttler_temp_disabled = false;
static std::atomic<double> s_last_actual_emulation_speed{1.0};
static bool s_frame_step = false;
@@ -765,11 +764,6 @@ void SaveScreenShot(std::string_view name)
});
}
-void RequestRefreshInfo()
-{
- s_request_refresh_info = true;
-}
-
static bool PauseAndLock(bool do_lock, bool unpause_on_unlock)
{
// WARNING: PauseAndLock is not fully threadsafe so is only valid on the Host Thread
@@ -868,7 +862,7 @@ void VideoThrottle()
{
// Update info per second
u32 ElapseTime = (u32)s_timer.GetTimeElapsed();
- if ((ElapseTime >= 1000 && s_drawn_video.load() > 0) || s_request_refresh_info)
+ if ((ElapseTime >= 1000 && s_drawn_video.load() > 0) || s_frame_step)
{
s_timer.Start();
@@ -916,7 +910,6 @@ void Callback_NewField()
void UpdateTitle(u32 ElapseTime)
{
- s_request_refresh_info = false;
SConfig& _CoreParameter = SConfig::GetInstance();
if (ElapseTime == 0)
@@ -1111,7 +1104,6 @@ void DoFrameStep()
// if already paused, frame advance for 1 frame
s_stop_frame_step = false;
s_frame_step = true;
- RequestRefreshInfo();
SetState(State::Running);
}
else if (!s_frame_step)
diff --git a/Source/Core/Core/Core.h b/Source/Core/Core/Core.h
index 3d820c3e38..52042b6409 100644
--- a/Source/Core/Core/Core.h
+++ b/Source/Core/Core/Core.h
@@ -123,7 +123,6 @@ void FrameUpdateOnCPUThread();
void OnFrameEnd();
void VideoThrottle();
-void RequestRefreshInfo();
void UpdateTitle(u32 ElapseTime);