mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Turn the FPSCounter namespace into a class.
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
#include "VideoCommon/DriverDetails.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/FPSCounter.h"
|
||||
#include "VideoCommon/ImageWrite.h"
|
||||
#include "VideoCommon/OnScreenDisplay.h"
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
@ -335,7 +336,6 @@ Renderer::Renderer()
|
||||
OSDInternalW = 0;
|
||||
OSDInternalH = 0;
|
||||
|
||||
s_fps=0;
|
||||
s_ShowEFBCopyRegions_VBO = 0;
|
||||
s_blendMode = 0;
|
||||
|
||||
@ -683,7 +683,7 @@ void Renderer::DrawDebugInfo()
|
||||
std::string debug_info;
|
||||
|
||||
if (g_ActiveConfig.bShowFPS)
|
||||
debug_info += StringFromFormat("FPS: %d\n", s_fps);
|
||||
debug_info += StringFromFormat("FPS: %d\n", m_fps_counter.m_fps);
|
||||
|
||||
if (SConfig::GetInstance().m_ShowLag)
|
||||
debug_info += StringFromFormat("Lag: %" PRIu64 "\n", Movie::g_currentLagCount);
|
||||
|
Reference in New Issue
Block a user