mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Adds support for PE performance metrics in the D3D9 backend
This commit is contained in:
parent
d06379fc59
commit
c4bc20b4d9
6 changed files with 206 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue