diff options
| author | 2023-05-26 22:19:36 -0700 | |
|---|---|---|
| committer | 2023-06-03 00:06:04 -0700 | |
| commit | cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0 (patch) | |
| tree | 54e6d0ca72246f149146d186574e50360d861e70 /src | |
| parent | android: config: Expose VSync as a configurable setting. (diff) | |
| download | yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.gz yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.xz yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.zip | |
video_core: vk_rasterizer: Decrease draw dispatch count for Android.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 4f2346a50..84e3a30cc 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp | |||
| @@ -757,7 +757,11 @@ void RasterizerVulkan::LoadDiskResources(u64 title_id, std::stop_token stop_load | |||
| 757 | } | 757 | } |
| 758 | 758 | ||
| 759 | void RasterizerVulkan::FlushWork() { | 759 | void RasterizerVulkan::FlushWork() { |
| 760 | #ifdef ANDROID | ||
| 761 | static constexpr u32 DRAWS_TO_DISPATCH = 1024; | ||
| 762 | #else | ||
| 760 | static constexpr u32 DRAWS_TO_DISPATCH = 4096; | 763 | static constexpr u32 DRAWS_TO_DISPATCH = 4096; |
| 764 | #endif // ANDROID | ||
| 761 | 765 | ||
| 762 | // Only check multiples of 8 draws | 766 | // Only check multiples of 8 draws |
| 763 | static_assert(DRAWS_TO_DISPATCH % 8 == 0); | 767 | static_assert(DRAWS_TO_DISPATCH % 8 == 0); |