mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Move FPSCounter calls to RenderBase.
This commit is contained in:
@ -27,7 +27,6 @@
|
||||
#include "VideoCommon/AVIDump.h"
|
||||
#include "VideoCommon/BPFunctions.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/FPSCounter.h"
|
||||
#include "VideoCommon/ImageWrite.h"
|
||||
#include "VideoCommon/OnScreenDisplay.h"
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
@ -38,8 +37,6 @@
|
||||
namespace DX11
|
||||
{
|
||||
|
||||
static int s_fps = 0;
|
||||
|
||||
static u32 s_LastAA = 0;
|
||||
|
||||
static Television s_television;
|
||||
@ -181,8 +178,6 @@ Renderer::Renderer(void *&window_handle)
|
||||
{
|
||||
int x, y, w_temp, h_temp;
|
||||
|
||||
FPSCounter::Initialize();
|
||||
|
||||
Host_GetRenderWindowSize(x, y, w_temp, h_temp);
|
||||
|
||||
D3D::Create((HWND)window_handle);
|
||||
@ -952,10 +947,6 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
|
||||
FramebufferManagerBase::SetLastXfbHeight(h);
|
||||
}
|
||||
|
||||
// update FPS counter
|
||||
if (XFBWrited)
|
||||
s_fps = FPSCounter::Update();
|
||||
|
||||
// Flip/present backbuffer to frontbuffer here
|
||||
D3D::Present();
|
||||
|
||||
|
Reference in New Issue
Block a user