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
This commit is contained in:
NeoBrainX 2011-04-02 11:38:29 +00:00
parent 0ed542206a
commit c4cd8d84e4
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;