diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-06-01 19:58:27 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-06-07 12:13:00 +0200 |
| commit | 5ddd2cef6c5cc8e5414636d73365691de726b3d0 (patch) | |
| tree | 0fc5652023050ddcccd41598983a233487de8256 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 9e2f4dd7da306a011d3f34bad7c1808186a9bbd0 (diff) | |
zfreeze: cache vertex positions
Suggested by degasus.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index dbb421991c..46a0eeaab0 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -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; |
