From 91eccb7babe62c448d96f5fefe4f8fdfa47fc01f Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 10 Jul 2016 10:33:37 +0200 Subject: [PATCH] gsdx sw: increase the size of the ring buffer 256 => 65536 memory overhead by thead is only 256KB However it will reduce the probability to block the push thread to nearly 0 I tested a couple of dumps and only manage 4000 element with 1 extrathread. --- plugins/GSdx/GSRasterizer.cpp | 2 +- plugins/GSdx/GSRasterizer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSRasterizer.cpp b/plugins/GSdx/GSRasterizer.cpp index 2075aac486..77b41d9499 100644 --- a/plugins/GSdx/GSRasterizer.cpp +++ b/plugins/GSdx/GSRasterizer.cpp @@ -1211,7 +1211,7 @@ int GSRasterizerList::GetPixels(bool reset) // GSRasterizerList::GSWorker GSRasterizerList::GSWorker::GSWorker(GSRasterizer* r) - : GSJobQueue, 256>() + : GSJobQueue, 65536>() , m_r(r) { } diff --git a/plugins/GSdx/GSRasterizer.h b/plugins/GSdx/GSRasterizer.h index f4eeb04c25..c12d1a543e 100644 --- a/plugins/GSdx/GSRasterizer.h +++ b/plugins/GSdx/GSRasterizer.h @@ -180,7 +180,7 @@ public: class GSRasterizerList : public IRasterizer { protected: - class GSWorker : public GSJobQueue, 256 > + class GSWorker : public GSJobQueue, 65536 > { GSRasterizer* m_r;