From 10d649e6d3ad3e4af32d2b41e718bb0a2924da67 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 11 Aug 2021 17:06:09 -0300 Subject: Calculate vertex buffer sizes from index buffer (#1663) * Calculate vertex buffer size from maximum index buffer index * Increase maximum index buffer count for it to be considered profitable for counting --- Ryujinx.Graphics.Gpu/GraphicsConfig.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/GraphicsConfig.cs') diff --git a/Ryujinx.Graphics.Gpu/GraphicsConfig.cs b/Ryujinx.Graphics.Gpu/GraphicsConfig.cs index 7ef102e2..14735e3b 100644 --- a/Ryujinx.Graphics.Gpu/GraphicsConfig.cs +++ b/Ryujinx.Graphics.Gpu/GraphicsConfig.cs @@ -33,6 +33,11 @@ namespace Ryujinx.Graphics.Gpu /// public static bool EnableMacroJit = true; + /// + /// Enables or disables vertex buffer size detection from the index buffer, for indexed draws. + /// + public static bool EnableIndexedVbSizeDetection = true; + /// /// Title id of the current running game. /// Used by the shader cache. -- cgit v1.2.3