From c4cd8d84e4a172223d93ce6ccf320980947cb837 Mon Sep 17 00:00:00 2001 From: NeoBrainX Date: Sat, 2 Apr 2011 11:38:29 +0000 Subject: [PATCH] Revert r7086. Preferring the slow code until it gets optimized properly... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7435 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/RenderBase.cpp | 7 ++----- Source/Plugins/Plugin_VideoDX11/Src/Render.cpp | 1 + Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/VideoCommon/Src/RenderBase.cpp b/Source/Core/VideoCommon/Src/RenderBase.cpp index 9029f5eff9..237605ccf3 100644 --- a/Source/Core/VideoCommon/Src/RenderBase.cpp +++ b/Source/Core/VideoCommon/Src/RenderBase.cpp @@ -178,13 +178,10 @@ bool Renderer::CalculateTargetSize(int multiplier) newEFBWidth *= multiplier; newEFBHeight *= multiplier; - s_Fulltarget_width = newEFBWidth; - s_Fulltarget_height = newEFBHeight; - if (newEFBWidth != s_target_width || newEFBHeight != s_target_height) { - s_target_width = newEFBWidth; - s_target_height = newEFBHeight; + s_Fulltarget_width = s_target_width = newEFBWidth; + s_Fulltarget_height = s_target_height = newEFBHeight; return true; } return false; diff --git a/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp index 21e9278f70..2239d41a71 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp @@ -707,6 +707,7 @@ void Renderer::UpdateViewport() float newy = (float)Y; float newwidth = (float)Width; float newheight = (float)Height; + // TODO: If the size hasn't changed for X frames, we should probably shrink the EFB texture for performance reasons if (sizeChanged) { // Make sure that the requested size is actually supported by the GFX driver diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp index 765f337bed..75bb25b97e 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp @@ -747,6 +747,8 @@ void Renderer::UpdateViewport() sizeChanged = true; } } + + // TODO: If the size hasn't changed for X frames, we should probably shrink the EFB texture for performance reasons if (sizeChanged) { const int ideal_width = s_Fulltarget_width;