summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-01-23 23:20:13 -0500
committerLioncash <mathew1800@gmail.com>2016-01-25 05:23:14 -0500
commit5ebd1e215b29bdbf74317ea1b6cb19578db0e41a (patch)
treeb796d65dd2ad9e9e357fb89034fd98c8bb0e28ba /Source/Core/VideoCommon/Fifo.cpp
parent48e7e5b72e76899197b91fb3fe70f25c4339ca85 (diff)
Fifo: Make g_bSkipCurrentFrame a TU-local variable
This is only ever queried, making it a global isn't necessary.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index e04f3ffcbf..953484c114 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -33,7 +33,7 @@ namespace Fifo
static constexpr u32 FIFO_SIZE = 2 * 1024 * 1024;
-bool g_bSkipCurrentFrame = false;
+static bool s_skip_current_frame = false;
static Common::BlockingLoop s_gpu_mainloop;
@@ -82,7 +82,8 @@ void DoState(PointerWrap &p)
// We're good and paused, right?
s_video_buffer_seen_ptr = s_video_buffer_pp_read_ptr = s_video_buffer_read_ptr;
}
- p.Do(g_bSkipCurrentFrame);
+
+ p.Do(s_skip_current_frame);
p.Do(s_last_sync_gpu_tick);
}
@@ -129,7 +130,12 @@ void Shutdown()
void SetRendering(bool enabled)
{
- g_bSkipCurrentFrame = !enabled;
+ s_skip_current_frame = !enabled;
+}
+
+bool WillSkipCurrentFrame()
+{
+ return s_skip_current_frame;
}
// May be executed from any thread, even the graphics thread.