Added a new statistic value: dlist calls for current frame.
Sorry for the commit spam, but this way each commit is a different thing. also the ideas for the next thing came to me after commiting, so I didn't know I'd commit again. :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@160 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
907f80032a
commit
e8c14fe037
|
@ -227,6 +227,8 @@ struct Statistics
|
|||
int numPrims;
|
||||
int numShaderChanges;
|
||||
int numBadCommands; //hope this always is zero ;)
|
||||
|
||||
int numDListsCalled;
|
||||
};
|
||||
ThisFrame thisFrame;
|
||||
void ResetFrame();
|
||||
|
|
|
@ -70,6 +70,7 @@ void ExecuteDisplayList(u32 address, u32 size)
|
|||
Decode();
|
||||
}
|
||||
INCSTAT(stats.numDListsCalled);
|
||||
INCSTAT(stats.thisFrame.numDListsCalled);
|
||||
|
||||
// un-swap
|
||||
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
||||
|
|
|
@ -671,7 +671,8 @@ void Renderer::Swap(const TRectangle& rc)
|
|||
p+=sprintf(p,"Num pshaders alive: %i\n",stats.numPixelShadersAlive);
|
||||
p+=sprintf(p,"Num vshaders created: %i\n",stats.numVertexShadersCreated);
|
||||
p+=sprintf(p,"Num vshaders alive: %i\n",stats.numVertexShadersAlive);
|
||||
p+=sprintf(p,"Num dlists called: %i\n",stats.numDListsCalled);
|
||||
p+=sprintf(p,"Num dlists called: %i\n",stats.numDListsCalled);
|
||||
p+=sprintf(p,"Num dlists called (frame): %i\n",stats.thisFrame.numDListsCalled);
|
||||
// not used.
|
||||
//p+=sprintf(p,"Num dlists created: %i\n",stats.numDListsCreated);
|
||||
//p+=sprintf(p,"Num dlists alive: %i\n",stats.numDListsAlive);
|
||||
|
|
Loading…
Reference in New Issue