zfreeze: cache vertex positions

Suggested by degasus.
This commit is contained in:
Tillmann Karras committed 2015-06-07 12:13:00 +02:00
1 parent 9e2f4dd7da
commit 5ddd2cef6c
9 files changed
+80 -17

No files matched your search

@@ -26,6 +26,9 @@
namespace VertexLoaderManager
{
float position_cache[3][4];
u32 position_matrix_index[3];
typedef std::unordered_map<PortableVertexDeclaration, std::unique_ptr<NativeVertexFormat>> NativeVertexFormatMap;
static NativeVertexFormatMap s_native_vertex_map;
static NativeVertexFormat* s_current_vtx_fmt;