diff options
author | bunnei <bunneidev@gmail.com> | 2023-05-27 07:19:36 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:06:04 +0200 |
commit | cf9f4f67ddf5869a99a231092d035b2bf4e2a2f0 (patch) | |
tree | 54e6d0ca72246f149146d186574e50360d861e70 /src/video_core/renderer_vulkan | |
parent | android: config: Expose VSync as a configurable setting. (diff) | |
download | yuzu-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/video_core/renderer_vulkan')
-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 } 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); |