mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
VideoCommon: remove unused stats
This commit is contained in:
parent
bd377b9580
commit
f1ddd3c66a
@ -145,7 +145,7 @@ void VertexManager::Draw(UINT stride)
|
|||||||
{
|
{
|
||||||
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
|
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
|
||||||
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
||||||
INCSTAT(stats.thisFrame.numIndexedDrawCalls);
|
INCSTAT(stats.thisFrame.numDrawCalls);
|
||||||
}
|
}
|
||||||
else if (current_primitive_type == PRIMITIVE_LINES)
|
else if (current_primitive_type == PRIMITIVE_LINES)
|
||||||
{
|
{
|
||||||
@ -165,7 +165,7 @@ void VertexManager::Draw(UINT stride)
|
|||||||
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
|
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
|
||||||
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_LINELIST);
|
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_LINELIST);
|
||||||
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
||||||
INCSTAT(stats.thisFrame.numIndexedDrawCalls);
|
INCSTAT(stats.thisFrame.numDrawCalls);
|
||||||
|
|
||||||
D3D::context->GSSetShader(nullptr, nullptr, 0);
|
D3D::context->GSSetShader(nullptr, nullptr, 0);
|
||||||
((DX11::Renderer*)g_renderer)->RestoreCull();
|
((DX11::Renderer*)g_renderer)->RestoreCull();
|
||||||
@ -189,7 +189,7 @@ void VertexManager::Draw(UINT stride)
|
|||||||
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
|
((DX11::Renderer*)g_renderer)->ApplyCullDisable(); // Disable culling for lines and points
|
||||||
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_POINTLIST);
|
D3D::context->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_POINTLIST);
|
||||||
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
D3D::context->DrawIndexed(IndexGenerator::GetIndexLen(), m_index_draw_offset, 0);
|
||||||
INCSTAT(stats.thisFrame.numIndexedDrawCalls);
|
INCSTAT(stats.thisFrame.numDrawCalls);
|
||||||
|
|
||||||
D3D::context->GSSetShader(nullptr, nullptr, 0);
|
D3D::context->GSSetShader(nullptr, nullptr, 0);
|
||||||
((DX11::Renderer*)g_renderer)->RestoreCull();
|
((DX11::Renderer*)g_renderer)->RestoreCull();
|
||||||
|
@ -124,7 +124,7 @@ void VertexManager::Draw(u32 stride)
|
|||||||
} else {
|
} else {
|
||||||
glDrawRangeElements(primitive_mode, 0, max_index, index_size, GL_UNSIGNED_SHORT, (u8*)nullptr+s_index_offset);
|
glDrawRangeElements(primitive_mode, 0, max_index, index_size, GL_UNSIGNED_SHORT, (u8*)nullptr+s_index_offset);
|
||||||
}
|
}
|
||||||
INCSTAT(stats.thisFrame.numIndexedDrawCalls);
|
INCSTAT(stats.thisFrame.numDrawCalls);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VertexManager::vFlush(bool useDstAlpha)
|
void VertexManager::vFlush(bool useDstAlpha)
|
||||||
|
@ -97,7 +97,6 @@ void InterpretDisplayList(u32 address, u32 size)
|
|||||||
{
|
{
|
||||||
Decode();
|
Decode();
|
||||||
}
|
}
|
||||||
INCSTAT(stats.numDListsCalled);
|
|
||||||
INCSTAT(stats.thisFrame.numDListsCalled);
|
INCSTAT(stats.thisFrame.numDListsCalled);
|
||||||
|
|
||||||
// un-swap
|
// un-swap
|
||||||
|
@ -31,16 +31,11 @@ std::string Statistics::ToString()
|
|||||||
str += StringFromFormat("Textures alive: %i\n", stats.numTexturesAlive);
|
str += StringFromFormat("Textures alive: %i\n", stats.numTexturesAlive);
|
||||||
str += StringFromFormat("pshaders created: %i\n", stats.numPixelShadersCreated);
|
str += StringFromFormat("pshaders created: %i\n", stats.numPixelShadersCreated);
|
||||||
str += StringFromFormat("pshaders alive: %i\n",stats.numPixelShadersAlive);
|
str += StringFromFormat("pshaders alive: %i\n",stats.numPixelShadersAlive);
|
||||||
str += StringFromFormat("pshaders (unique, delete cache first): %i\n",stats.numUniquePixelShaders);
|
|
||||||
str += StringFromFormat("vshaders created: %i\n",stats.numVertexShadersCreated);
|
str += StringFromFormat("vshaders created: %i\n",stats.numVertexShadersCreated);
|
||||||
str += StringFromFormat("vshaders alive: %i\n",stats.numVertexShadersAlive);
|
str += StringFromFormat("vshaders alive: %i\n",stats.numVertexShadersAlive);
|
||||||
str += StringFromFormat("dlists called: %i\n",stats.numDListsCalled);
|
str += StringFromFormat("dlists called: %i\n",stats.thisFrame.numDListsCalled);
|
||||||
str += StringFromFormat("dlists called(f): %i\n",stats.thisFrame.numDListsCalled);
|
|
||||||
str += StringFromFormat("dlists alive: %i\n",stats.numDListsAlive);
|
|
||||||
str += StringFromFormat("Primitive joins: %i\n",stats.thisFrame.numPrimitiveJoins);
|
str += StringFromFormat("Primitive joins: %i\n",stats.thisFrame.numPrimitiveJoins);
|
||||||
str += StringFromFormat("Draw calls: %i\n",stats.thisFrame.numDrawCalls);
|
str += StringFromFormat("Draw calls: %i\n",stats.thisFrame.numDrawCalls);
|
||||||
str += StringFromFormat("Indexed draw calls: %i\n",stats.thisFrame.numIndexedDrawCalls);
|
|
||||||
str += StringFromFormat("Buffer splits: %i\n",stats.thisFrame.numBufferSplits);
|
|
||||||
str += StringFromFormat("Primitives: %i\n",stats.thisFrame.numPrims);
|
str += StringFromFormat("Primitives: %i\n",stats.thisFrame.numPrims);
|
||||||
str += StringFromFormat("Primitives (DL): %i\n",stats.thisFrame.numDLPrims);
|
str += StringFromFormat("Primitives (DL): %i\n",stats.thisFrame.numDLPrims);
|
||||||
str += StringFromFormat("XF loads: %i\n",stats.thisFrame.numXFLoads);
|
str += StringFromFormat("XF loads: %i\n",stats.thisFrame.numXFLoads);
|
||||||
|
@ -20,17 +20,8 @@ struct Statistics
|
|||||||
int numTexturesCreated;
|
int numTexturesCreated;
|
||||||
int numTexturesAlive;
|
int numTexturesAlive;
|
||||||
|
|
||||||
int numRenderTargetsCreated;
|
|
||||||
int numRenderTargetsAlive;
|
|
||||||
|
|
||||||
int numDListsCalled;
|
|
||||||
int numDListsCreated;
|
|
||||||
int numDListsAlive;
|
|
||||||
|
|
||||||
int numVertexLoaders;
|
int numVertexLoaders;
|
||||||
|
|
||||||
int numUniquePixelShaders;
|
|
||||||
|
|
||||||
float proj_0, proj_1, proj_2, proj_3, proj_4, proj_5;
|
float proj_0, proj_1, proj_2, proj_3, proj_4, proj_5;
|
||||||
float gproj_0, gproj_1, gproj_2, gproj_3, gproj_4, gproj_5;
|
float gproj_0, gproj_1, gproj_2, gproj_3, gproj_4, gproj_5;
|
||||||
float gproj_6, gproj_7, gproj_8, gproj_9, gproj_10, gproj_11, gproj_12, gproj_13, gproj_14, gproj_15;
|
float gproj_6, gproj_7, gproj_8, gproj_9, gproj_10, gproj_11, gproj_12, gproj_13, gproj_14, gproj_15;
|
||||||
@ -50,15 +41,12 @@ struct Statistics
|
|||||||
int numCPLoadsInDL;
|
int numCPLoadsInDL;
|
||||||
int numXFLoadsInDL;
|
int numXFLoadsInDL;
|
||||||
|
|
||||||
int numDLs;
|
|
||||||
int numPrims;
|
int numPrims;
|
||||||
int numDLPrims;
|
int numDLPrims;
|
||||||
int numShaderChanges;
|
int numShaderChanges;
|
||||||
|
|
||||||
int numPrimitiveJoins;
|
int numPrimitiveJoins;
|
||||||
int numDrawCalls;
|
int numDrawCalls;
|
||||||
int numIndexedDrawCalls;
|
|
||||||
int numBufferSplits;
|
|
||||||
|
|
||||||
int numDListsCalled;
|
int numDListsCalled;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user