From 129e9477206de5f2fdc3d874b640ba61270b5d81 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 26 May 2022 22:10:51 +0300 Subject: [PATCH] gl: Improve CS throughput - Avoids making too many invocations, especially given the 1D nature of some GPU dispatch handlers --- rpcs3/Emu/RSX/GL/GLCompute.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/RSX/GL/GLCompute.cpp b/rpcs3/Emu/RSX/GL/GLCompute.cpp index 74ee1075ec..dd6ba7d276 100644 --- a/rpcs3/Emu/RSX/GL/GLCompute.cpp +++ b/rpcs3/Emu/RSX/GL/GLCompute.cpp @@ -21,6 +21,8 @@ namespace gl optimal_group_size = 128; } + optimal_kernel_size = 256 / optimal_group_size; + glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 0, reinterpret_cast(&max_invocations_x)); }