summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-03-13 16:33:47 -0400
committerGravatar FernandoS272020-03-14 09:43:57 -0400
commit27cbb75e7c2818c073bd65a000d7ff7f28d391d4 (patch)
tree1f8ff16d5202fde0e15f8a8f7c5d50045efb9341 /src/video_core
parentMerge pull request #3491 from ReinUsesLisp/polygon-modes (diff)
downloadyuzu-27cbb75e7c2818c073bd65a000d7ff7f28d391d4.tar.gz
yuzu-27cbb75e7c2818c073bd65a000d7ff7f28d391d4.tar.xz
yuzu-27cbb75e7c2818c073bd65a000d7ff7f28d391d4.zip
PageTable: move backing addresses to a children class as the CPU page table does not need them.
This PR aims to reduce the memory usage in the CPU page table by moving GPU specific parameters into a child class. This saves 1Gb of Memory for most games.
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/memory_manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index aea010087..073bdb491 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -174,7 +174,7 @@ private:
174 /// End of address space, based on address space in bits. 174 /// End of address space, based on address space in bits.
175 static constexpr GPUVAddr address_space_end{1ULL << address_space_width}; 175 static constexpr GPUVAddr address_space_end{1ULL << address_space_width};
176 176
177 Common::PageTable page_table{page_bits}; 177 Common::BackingPageTable page_table{page_bits};
178 VMAMap vma_map; 178 VMAMap vma_map;
179 VideoCore::RasterizerInterface& rasterizer; 179 VideoCore::RasterizerInterface& rasterizer;
180 180