diff options
author | Henrik Rydgard <hrydgard@gmail.com> | 2016-04-28 22:30:01 +0200 |
---|---|---|
committer | Henrik Rydgard <hrydgard@gmail.com> | 2016-04-28 22:30:01 +0200 |
commit | a442ee07f4e3b0da974ac9f0899a14e85ddaec92 (patch) | |
tree | 1f98cc1f133c68837349859f191815a116036ae2 /src | |
parent | Optimize the vertex loader, nearly doubling its speed. (diff) | |
download | yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar.gz yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar.bz2 yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar.lz yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar.xz yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.tar.zst yuzu-a442ee07f4e3b0da974ac9f0899a14e85ddaec92.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/vertex_loader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp index 38682d2be..4784817f4 100644 --- a/src/video_core/vertex_loader.cpp +++ b/src/video_core/vertex_loader.cpp @@ -70,9 +70,9 @@ void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, Shader::I u32 source_addr = base_address + vertex_attribute_sources[i] + vertex_attribute_strides[i] * vertex; if (g_debug_context && Pica::g_debug_context->recorder) { - memory_accesses.AddAccess(source_addr, + memory_accesses.AddAccess(source_addr, vertex_attribute_elements[i] * ( (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::FLOAT) ? 4 - : (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::SHORT) ? 2 : 1); + : (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::SHORT) ? 2 : 1)); } switch (vertex_attribute_formats[i]) { |