mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
FPS counter cleanup
- Isolate it into it's own namespace - Shorten function names, the namespace self-documents. - Just use the std I/O, we can just write directly to the stream for logging.
This commit is contained in:
parent
aec4cc7e29
commit
00efaedb02
4 changed files with 24 additions and 18 deletions
|
@ -181,7 +181,7 @@ Renderer::Renderer(void *&window_handle)
|
|||
{
|
||||
int x, y, w_temp, h_temp;
|
||||
|
||||
InitFPSCounter();
|
||||
FPSCounter::Initialize();
|
||||
|
||||
Host_GetRenderWindowSize(x, y, w_temp, h_temp);
|
||||
|
||||
|
@ -954,7 +954,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
|
|||
|
||||
// update FPS counter
|
||||
if (XFBWrited)
|
||||
s_fps = UpdateFPSCounter();
|
||||
s_fps = FPSCounter::Update();
|
||||
|
||||
// Flip/present backbuffer to frontbuffer here
|
||||
D3D::Present();
|
||||
|
|
|
@ -340,7 +340,7 @@ Renderer::Renderer()
|
|||
s_fps=0;
|
||||
s_ShowEFBCopyRegions_VBO = 0;
|
||||
s_blendMode = 0;
|
||||
InitFPSCounter();
|
||||
FPSCounter::Initialize();
|
||||
|
||||
bool bSuccess = true;
|
||||
|
||||
|
@ -1584,7 +1584,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
|
|||
}
|
||||
|
||||
if (XFBWrited)
|
||||
s_fps = UpdateFPSCounter();
|
||||
s_fps = FPSCounter::Update();
|
||||
// ---------------------------------------------------------------------
|
||||
if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENSWAP))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue