From 6f4ec98bc36cf181720cdcb3af7455fe561cd242 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 4 Jun 2015 22:15:52 +0200 Subject: [PATCH] gsdx: try to reduce the size of target as much as possible I suspect too consume too much memory (issue #576) --- plugins/GSdx/GSRendererHW.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index dfbdcd208d..b3a6a410b3 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -36,7 +36,7 @@ GSRendererHW::GSRendererHW(GSTextureCache* tc) m_userhacks_round_sprite_offset = !!theApp.GetConfig("UserHacks", 0) ? theApp.GetConfig("UserHacks_round_sprite_offset", 0) : 0; } -void GSRendererHW::SetScaling(){ +void GSRendererHW::SetScaling() { int env = IsEnabled(1) ? 1 : 0; m_buffer_size = max(m_context->FRAME.FBW, m_regs->DISP[env].DISPFB.FBW); @@ -64,7 +64,9 @@ void GSRendererHW::SetScaling(){ else if (m_upscale_multiplier > 1) { m_width = (m_buffer_size * 64) * m_upscale_multiplier; - m_height = m_width; //Keep it square + // A square RT consumes too much memory (Gran Turismo 4) + // Let's keep the smallest size as possible + m_height = 512 * m_upscale_multiplier; //m_height = m_width; //Keep it square } } else