diff options
| author | 2022-11-17 16:36:53 +0100 | |
|---|---|---|
| committer | 2023-01-01 16:43:57 -0500 | |
| commit | 18637766efd1ff9a0c22967553983cfda69c96ca (patch) | |
| tree | 142d4cab2de27ce250d246f0355fec97748a7bcf /src/video_core/dma_pusher.cpp | |
| parent | MacroHLE: Add HLE replacement for base vertex and base instance. (diff) | |
| download | yuzu-18637766efd1ff9a0c22967553983cfda69c96ca.tar.gz yuzu-18637766efd1ff9a0c22967553983cfda69c96ca.tar.xz yuzu-18637766efd1ff9a0c22967553983cfda69c96ca.zip | |
MacroHLE: Reduce massive calculations on sizing estimation.
Diffstat (limited to 'src/video_core/dma_pusher.cpp')
| -rw-r--r-- | src/video_core/dma_pusher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/dma_pusher.cpp b/src/video_core/dma_pusher.cpp index 5ad40abaa..7a82355da 100644 --- a/src/video_core/dma_pusher.cpp +++ b/src/video_core/dma_pusher.cpp | |||
| @@ -75,7 +75,8 @@ bool DmaPusher::Step() { | |||
| 75 | 75 | ||
| 76 | // Push buffer non-empty, read a word | 76 | // Push buffer non-empty, read a word |
| 77 | command_headers.resize_destructive(command_list_header.size); | 77 | command_headers.resize_destructive(command_list_header.size); |
| 78 | if (Settings::IsGPULevelExtreme()) { | 78 | constexpr u32 MacroRegistersStart = 0xE00; |
| 79 | if (dma_state.method < MacroRegistersStart) { | ||
| 79 | memory_manager.ReadBlock(dma_state.dma_get, command_headers.data(), | 80 | memory_manager.ReadBlock(dma_state.dma_get, command_headers.data(), |
| 80 | command_list_header.size * sizeof(u32)); | 81 | command_list_header.size * sizeof(u32)); |
| 81 | } else { | 82 | } else { |