softgpu: Tune thread minimums better.

Darkstalkers seems more sensitive to these than many other games, this
improves performance more.
This commit is contained in:
Unknown W. Brackets 2021-11-14 18:44:30 -08:00
parent 66f635cba0
commit babd63c644
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -98,7 +98,7 @@ void DrawSprite(const VertexData& v0, const VertexData& v1) {
bool isWhite = v1.color0 == Vec4<int>(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!