mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Sort vertex loader debug statistics by number of verts loaded - now easy to identify the heaviest vertex loader in games.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2252 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -24,8 +24,6 @@ namespace VertexManager
|
||||
|
||||
void AddVertices(int primitive, int numvertices);
|
||||
void Flush(); // flushes the current buffer
|
||||
|
||||
// This doesn't really belong here and are not relevant for D3D - TODO, find better place to put them.
|
||||
int GetRemainingSize(); // remaining space in the current buffer.
|
||||
|
||||
// TODO: move, rename.
|
||||
|
@ -84,7 +84,7 @@ void LOADERDECL PosMtx_Write()
|
||||
|
||||
void LOADERDECL TexMtx_ReadDirect_UByte()
|
||||
{
|
||||
s_curtexmtx[s_texmtxread] = DataReadU8()&0x3f;
|
||||
s_curtexmtx[s_texmtxread] = DataReadU8() & 0x3f;
|
||||
PRIM_LOG("texmtx%d: %d, ", s_texmtxread, s_curtexmtx[s_texmtxread]);
|
||||
s_texmtxread++;
|
||||
}
|
||||
@ -700,7 +700,7 @@ void VertexLoader::SetVAT(u32 _group0, u32 _group1, u32 _group2)
|
||||
m_VtxAttr.texCoord[7].Frac = vat.g2.Tex7Frac;
|
||||
};
|
||||
|
||||
void VertexLoader::AppendToString(std::string *dest)
|
||||
void VertexLoader::AppendToString(std::string *dest) const
|
||||
{
|
||||
dest->reserve(250);
|
||||
static const char *posMode[4] = {
|
||||
|
@ -63,7 +63,8 @@ public:
|
||||
void RunVertices(int vtx_attr_group, int primitive, int count);
|
||||
|
||||
// For debugging / profiling
|
||||
void AppendToString(std::string *dest);
|
||||
void AppendToString(std::string *dest) const;
|
||||
int GetNumLoadedVerts() const { return m_numLoadedVertices; }
|
||||
|
||||
private:
|
||||
enum
|
||||
|
Reference in New Issue
Block a user