From 6c90e9e28eccf9ed13365e91e6fbdf33d7d3e261 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:11:53 +0300 Subject: [PATCH] g_next -> s_next --- UnleashedRecomp/gpu/video.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 7c1b64cd..17f80e8d 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -2220,23 +2220,23 @@ void Video::Present() { using namespace std::chrono_literals; - static std::chrono::steady_clock::time_point g_next; + static std::chrono::steady_clock::time_point s_next; auto now = std::chrono::steady_clock::now(); - if (now < g_next) + if (now < s_next) { - std::this_thread::sleep_for(std::chrono::floor(g_next - now - 2ms)); + std::this_thread::sleep_for(std::chrono::floor(s_next - now - 2ms)); - while ((now = std::chrono::steady_clock::now()) < g_next) + while ((now = std::chrono::steady_clock::now()) < s_next) std::this_thread::yield(); } else { - g_next = now; + s_next = now; } - g_next += 1000000000ns / Config::FPS; + s_next += 1000000000ns / Config::FPS; } g_presentProfiler.Reset();