From babd63c6444fbdc7ceeb3d07f3451c78fcf0b088 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 14 Nov 2021 18:44:30 -0800 Subject: [PATCH] softgpu: Tune thread minimums better. Darkstalkers seems more sensitive to these than many other games, this improves performance more. --- GPU/Software/Rasterizer.cpp | 2 +- GPU/Software/RasterizerRectangle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index f30358da19..88d8b763a5 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -1451,7 +1451,7 @@ void ClearRectangle(const VertexData &v0, const VertexData &v1) minY = std::max(minY, (int)TransformUnit::DrawingToScreen(scissorTL).y); maxY = std::max(0, std::min(maxY, (int)TransformUnit::DrawingToScreen(scissorBR).y + 16)); - constexpr int MIN_LINES_PER_THREAD = 8 * 16; + constexpr int MIN_LINES_PER_THREAD = 32 * 16; const int w = (maxX - minX) / 16; if (w <= 0) diff --git a/GPU/Software/RasterizerRectangle.cpp b/GPU/Software/RasterizerRectangle.cpp index 055d4eee67..5e4047a9ec 100644 --- a/GPU/Software/RasterizerRectangle.cpp +++ b/GPU/Software/RasterizerRectangle.cpp @@ -98,7 +98,7 @@ void DrawSprite(const VertexData& v0, const VertexData& v1) { bool isWhite = v1.color0 == Vec4(255, 255, 255, 255); - constexpr int MIN_LINES_PER_THREAD = 8; + constexpr int MIN_LINES_PER_THREAD = 32; if (gstate.isTextureMapEnabled()) { // 1:1 (but with mirror support) texture mapping!