Adds support for PE performance metrics in the D3D9 backend

This commit is contained in:
Rodolfo Bogado
2013-04-03 19:53:48 -03:00
parent d06379fc59
commit c4bc20b4d9
6 changed files with 206 additions and 3 deletions

View File

@ -55,7 +55,7 @@
#include "BPFunctions.h"
#include "FPSCounter.h"
#include "ConfigManager.h"
#include "PerfQuery.h"
#include <strsafe.h>
@ -88,6 +88,7 @@ void SetupDeviceObjects()
VertexShaderCache::Init();
PixelShaderCache::Init();
g_vertex_manager->CreateDeviceObjects();
g_perf_query = new PerfQuery;
// Texture cache will recreate themselves over time.
}
@ -100,6 +101,7 @@ void TeardownDeviceObjects()
D3D::dev->SetRenderTarget(0, D3D::GetBackBufferSurface());
D3D::dev->SetDepthStencilSurface(D3D::GetBackBufferDepthSurface());
delete g_framebuffer_manager;
delete g_perf_query;
D3D::font.Shutdown();
TextureCache::Invalidate();
VertexLoaderManager::Shutdown();