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:
gigaherz 2008-08-08 23:39:48 +00:00
parent 907f80032a
commit e8c14fe037
3 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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);

View File

@ -671,7 +671,8 @@ void Renderer::Swap(const TRectangle& rc)
p+=sprintf(p,"Num pshaders alive: %i\n",stats.numPixelShadersAlive); 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 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);