From 7d57cdca41e98deb0e98feaf21c8d079df2ad937 Mon Sep 17 00:00:00 2001 From: PoloniumRain <50634894+PoloniumRain@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:14:52 +0100 Subject: [PATCH] Improved Voodoo performance when using CPU threaded rendering Improves 3dfx Voodoo frame rates by 3 - 8% (sometimes slightly less or more) depending on the game. This applies to the core options 'Software Multi Threaded (default)' and 'Software Multi Threaded, low quality'. Many game test results can be viewed [here.](https://github.com/schellingb/dosbox-pure/issues/519#issuecomment-2438388162) --- src/hardware/voodoo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/voodoo.cpp b/src/hardware/voodoo.cpp index f83e37db..66011d3e 100644 --- a/src/hardware/voodoo.cpp +++ b/src/hardware/voodoo.cpp @@ -6122,7 +6122,7 @@ static void triangle_worker_run(triangle_worker& tworker) tworker.totalpix = pixsum; // Don't wake up threads for just a few pixels - if (tworker.totalpix <= 200) + if (tworker.totalpix <= 350) { triangle_worker_work(tworker, 0, tworker.triangle_threads + 1); return;