diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-02-15 12:38:25 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-02-15 12:38:25 +0000 |
| commit | 232e961b6f703b2c8b83b04841acecec105f0819 (patch) | |
| tree | e74ae1248d94ea7e9f763e565a7b4d0d7a6cdbe8 /Source/Core/VideoCommon | |
| parent | a4aac9ec99828b3e1dec91e56153377de6c0611e (diff) | |
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
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/NativeVertexWriter.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexLoader.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexLoader.h | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/Src/NativeVertexWriter.h b/Source/Core/VideoCommon/Src/NativeVertexWriter.h index 6af9105ee9..3d6b8c5c44 100644 --- a/Source/Core/VideoCommon/Src/NativeVertexWriter.h +++ b/Source/Core/VideoCommon/Src/NativeVertexWriter.h @@ -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.
diff --git a/Source/Core/VideoCommon/Src/VertexLoader.cpp b/Source/Core/VideoCommon/Src/VertexLoader.cpp index 65be39a539..084eba7ed1 100644 --- a/Source/Core/VideoCommon/Src/VertexLoader.cpp +++ b/Source/Core/VideoCommon/Src/VertexLoader.cpp @@ -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] = { diff --git a/Source/Core/VideoCommon/Src/VertexLoader.h b/Source/Core/VideoCommon/Src/VertexLoader.h index 0e91fa7c67..6138fcabe4 100644 --- a/Source/Core/VideoCommon/Src/VertexLoader.h +++ b/Source/Core/VideoCommon/Src/VertexLoader.h @@ -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 |
