Move FPSCounter calls to RenderBase.

This commit is contained in:
Jules Blok
2014-07-09 23:18:11 +02:00
parent a546ef3276
commit 1754cbda9d
4 changed files with 10 additions and 14 deletions

View File

@ -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();