Merge pull request #10764 from shepgoba/master

Rename FPS_REFRESH_INTERVAL in VideoCommon/FPSCounter
This commit is contained in:
Admiral H. Curtiss 2022-06-18 15:18:08 +02:00 committed by GitHub
commit 8274886cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
#include "Core/Core.h" #include "Core/Core.h"
#include "VideoCommon/VideoConfig.h" #include "VideoCommon/VideoConfig.h"
static constexpr u64 FPS_REFRESH_INTERVAL = 250000; static constexpr u64 FPS_REFRESH_INTERVAL_US = 250000;
FPSCounter::FPSCounter() FPSCounter::FPSCounter()
{ {
@ -54,7 +54,7 @@ void FPSCounter::Update()
m_time_since_update += diff; m_time_since_update += diff;
m_last_time = time; m_last_time = time;
if (m_time_since_update >= FPS_REFRESH_INTERVAL) if (m_time_since_update >= FPS_REFRESH_INTERVAL_US)
{ {
m_fps = m_frame_counter / (m_time_since_update / 1000000.0); m_fps = m_frame_counter / (m_time_since_update / 1000000.0);
m_frame_counter = 0; m_frame_counter = 0;