summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-27 07:19:36 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:04 +0200
commitcf9f4f67ddf5869a99a231092d035b2bf4e2a2f0 (patch)
tree54e6d0ca72246f149146d186574e50360d861e70 /src
parentandroid: config: Expose VSync as a configurable setting. (diff)
downloadyuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.gz
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.bz2
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.lz
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.xz
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.tar.zst
yuzu-cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp4
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
}
void RasterizerVulkan::FlushWork() {
+#ifdef ANDROID
+ static constexpr u32 DRAWS_TO_DISPATCH = 1024;
+#else
static constexpr u32 DRAWS_TO_DISPATCH = 4096;
+#endif // ANDROID
// Only check multiples of 8 draws
static_assert(DRAWS_TO_DISPATCH % 8 == 0);