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 numPrims;
|
||||||
int numShaderChanges;
|
int numShaderChanges;
|
||||||
int numBadCommands; //hope this always is zero ;)
|
int numBadCommands; //hope this always is zero ;)
|
||||||
|
|
||||||
|
int numDListsCalled;
|
||||||
};
|
};
|
||||||
ThisFrame thisFrame;
|
ThisFrame thisFrame;
|
||||||
void ResetFrame();
|
void ResetFrame();
|
||||||
|
|
|
@ -70,6 +70,7 @@ void ExecuteDisplayList(u32 address, u32 size)
|
||||||
Decode();
|
Decode();
|
||||||
}
|
}
|
||||||
INCSTAT(stats.numDListsCalled);
|
INCSTAT(stats.numDListsCalled);
|
||||||
|
INCSTAT(stats.thisFrame.numDListsCalled);
|
||||||
|
|
||||||
// un-swap
|
// un-swap
|
||||||
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
Xchg(stats.thisFrame.numDLPrims,stats.thisFrame.numPrims);
|
||||||
|
|
|
@ -672,6 +672,7 @@ void Renderer::Swap(const TRectangle& rc)
|
||||||
p+=sprintf(p,"Num vshaders created: %i\n",stats.numVertexShadersCreated);
|
p+=sprintf(p,"Num vshaders created: %i\n",stats.numVertexShadersCreated);
|
||||||
p+=sprintf(p,"Num vshaders alive: %i\n",stats.numVertexShadersAlive);
|
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.
|
// not used.
|
||||||
//p+=sprintf(p,"Num dlists created: %i\n",stats.numDListsCreated);
|
//p+=sprintf(p,"Num dlists created: %i\n",stats.numDListsCreated);
|
||||||
//p+=sprintf(p,"Num dlists alive: %i\n",stats.numDListsAlive);
|
//p+=sprintf(p,"Num dlists alive: %i\n",stats.numDListsAlive);
|
||||||
|
|
Loading…
Reference in New Issue