From 5b04f4dab9e1ff151079df1c61fc6e558aa77dfd Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 28 Apr 2016 17:13:14 +0200 Subject: [PATCH] gsdx: add optimization note for the future --- plugins/GSdx/GSRendererHW.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index 5a1afec1e4..3a45271af2 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -804,6 +804,8 @@ void GSRendererHW::OI_GsMemClear() int format = GSLocalMemory::m_psm[m_context->FRAME.PSM].fmt; + // FIXME: loop can likely be optimized with AVX/SSE. Pixels aren't + // linear but the value will be done for all pixels of a block. if (format == 0) { // Based on WritePixel32 for(int y = r.top; y < r.bottom; y++)