mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Some of the previously unused statistics have been added/readded. If there was any reason not to have them, feel free to revert this.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@159 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b12621e3f0
commit
907f80032a
@ -61,6 +61,9 @@ void ExecuteDisplayList(u32 address, u32 size)
|
|||||||
|
|
||||||
// temporarily swap dl and non-dl(small "hack" for the stats)
|
// temporarily swap dl and non-dl(small "hack" for the stats)
|
||||||
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
||||||
|
Xchg(stats.thisFrame.numXFLoadsInDL,stats.thisFrame.numXFLoads);
|
||||||
|
Xchg(stats.thisFrame.numCPLoadsInDL,stats.thisFrame.numCPLoads);
|
||||||
|
Xchg(stats.thisFrame.numBPLoadsInDL,stats.thisFrame.numBPLoads);
|
||||||
|
|
||||||
while((memoryReader.GetReadAddress() - address) < size)
|
while((memoryReader.GetReadAddress() - address) < size)
|
||||||
{
|
{
|
||||||
@ -70,6 +73,9 @@ void ExecuteDisplayList(u32 address, u32 size)
|
|||||||
|
|
||||||
// un-swap
|
// un-swap
|
||||||
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
||||||
|
Xchg(stats.thisFrame.numXFLoadsInDL,stats.thisFrame.numXFLoads);
|
||||||
|
Xchg(stats.thisFrame.numCPLoadsInDL,stats.thisFrame.numCPLoads);
|
||||||
|
Xchg(stats.thisFrame.numBPLoadsInDL,stats.thisFrame.numBPLoads);
|
||||||
|
|
||||||
// reset to the old reader
|
// reset to the old reader
|
||||||
g_pDataReader = pOldReader;
|
g_pDataReader = pOldReader;
|
||||||
@ -200,6 +206,7 @@ void Decode(void)
|
|||||||
u32 SubCmd = g_pDataReader->Read8();
|
u32 SubCmd = g_pDataReader->Read8();
|
||||||
u32 Value = g_pDataReader->Read32();
|
u32 Value = g_pDataReader->Read32();
|
||||||
VertexManager::LoadCPReg(SubCmd,Value);
|
VertexManager::LoadCPReg(SubCmd,Value);
|
||||||
|
INCSTAT(stats.thisFrame.numCPLoads);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -213,6 +220,7 @@ void Decode(void)
|
|||||||
for (int i=0; i<dwTransferSize; i++)
|
for (int i=0; i<dwTransferSize; i++)
|
||||||
pData[i] = g_pDataReader->Read32();
|
pData[i] = g_pDataReader->Read32();
|
||||||
VertexShaderMngr::LoadXFReg(dwTransferSize,dwAddress,pData);
|
VertexShaderMngr::LoadXFReg(dwTransferSize,dwAddress,pData);
|
||||||
|
INCSTAT(stats.thisFrame.numXFLoads);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -249,6 +257,7 @@ void Decode(void)
|
|||||||
{
|
{
|
||||||
u32 cmd = g_pDataReader->Read32();
|
u32 cmd = g_pDataReader->Read32();
|
||||||
LoadBPReg(cmd);
|
LoadBPReg(cmd);
|
||||||
|
INCSTAT(stats.thisFrame.numBPLoads);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -679,13 +679,12 @@ void Renderer::Swap(const TRectangle& rc)
|
|||||||
p+=sprintf(p,"Num primitives: %i\n",stats.thisFrame.numPrims);
|
p+=sprintf(p,"Num primitives: %i\n",stats.thisFrame.numPrims);
|
||||||
p+=sprintf(p,"Num primitives (DL): %i\n",stats.thisFrame.numDLPrims);
|
p+=sprintf(p,"Num primitives (DL): %i\n",stats.thisFrame.numDLPrims);
|
||||||
p+=sprintf(p,"Num bad commands: %i%s\n",stats.thisFrame.numBadCommands,stats.thisFrame.numBadCommands?"!!!":"");
|
p+=sprintf(p,"Num bad commands: %i%s\n",stats.thisFrame.numBadCommands,stats.thisFrame.numBadCommands?"!!!":"");
|
||||||
// not used.
|
p+=sprintf(p,"Num XF loads: %i\n",stats.thisFrame.numXFLoads);
|
||||||
//p+=sprintf(p,"Num XF loads: %i\n",stats.thisFrame.numXFLoads);
|
p+=sprintf(p,"Num XF loads (DL): %i\n",stats.thisFrame.numXFLoadsInDL);
|
||||||
//p+=sprintf(p,"Num XF loads (DL): %i\n",stats.thisFrame.numXFLoadsInDL);
|
p+=sprintf(p,"Num CP loads: %i\n",stats.thisFrame.numCPLoads);
|
||||||
//p+=sprintf(p,"Num CP loads: %i\n",stats.thisFrame.numCPLoads);
|
p+=sprintf(p,"Num CP loads (DL): %i\n",stats.thisFrame.numCPLoadsInDL);
|
||||||
//p+=sprintf(p,"Num CP loads (DL): %i\n",stats.thisFrame.numCPLoadsInDL);
|
p+=sprintf(p,"Num BP loads: %i\n",stats.thisFrame.numBPLoads);
|
||||||
//p+=sprintf(p,"Num BP loads: %i\n",stats.thisFrame.numBPLoads);
|
p+=sprintf(p,"Num BP loads (DL): %i\n",stats.thisFrame.numBPLoadsInDL);
|
||||||
//p+=sprintf(p,"Num BP loads (DL): %i\n",stats.thisFrame.numBPLoadsInDL);
|
|
||||||
|
|
||||||
Renderer::DrawText(st, 20, 20, 0xFF00FFFF);
|
Renderer::DrawText(st, 20, 20, 0xFF00FFFF);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user