mirror of https://github.com/PCSX2/pcsx2.git
Removed FTZ and DAZ options from the EE and VU panels.
PS2 behavior is the same / close to always on, so having them optional got pointless. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4257 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
002398a798
commit
ac865c74ad
|
@ -128,9 +128,6 @@ namespace Panels
|
||||||
pxRadioPanel* m_RoundModePanel;
|
pxRadioPanel* m_RoundModePanel;
|
||||||
pxRadioPanel* m_ClampModePanel;
|
pxRadioPanel* m_ClampModePanel;
|
||||||
|
|
||||||
pxCheckBox* m_Option_FTZ;
|
|
||||||
pxCheckBox* m_Option_DAZ;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseAdvancedCpuOptions( wxWindow* parent );
|
BaseAdvancedCpuOptions( wxWindow* parent );
|
||||||
virtual ~BaseAdvancedCpuOptions() throw() { }
|
virtual ~BaseAdvancedCpuOptions() throw() { }
|
||||||
|
@ -215,8 +212,6 @@ namespace Panels
|
||||||
protected:
|
protected:
|
||||||
wxSpinCtrl* m_spin_FramesToSkip;
|
wxSpinCtrl* m_spin_FramesToSkip;
|
||||||
wxSpinCtrl* m_spin_FramesToDraw;
|
wxSpinCtrl* m_spin_FramesToDraw;
|
||||||
//pxCheckBox* m_check_EnableSkip;
|
|
||||||
//pxCheckBox* m_check_EnableSkipOnTurbo;
|
|
||||||
|
|
||||||
pxRadioPanel* m_radio_SkipMode;
|
pxRadioPanel* m_radio_SkipMode;
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@ Panels::BaseAdvancedCpuOptions::BaseAdvancedCpuOptions( wxWindow* parent )
|
||||||
wxStaticBoxSizer* s_round( new wxStaticBoxSizer( wxVERTICAL, this, _("Round Mode") ) );
|
wxStaticBoxSizer* s_round( new wxStaticBoxSizer( wxVERTICAL, this, _("Round Mode") ) );
|
||||||
wxStaticBoxSizer* s_clamp( new wxStaticBoxSizer( wxVERTICAL, this, _("Clamping Mode") ) );
|
wxStaticBoxSizer* s_clamp( new wxStaticBoxSizer( wxVERTICAL, this, _("Clamping Mode") ) );
|
||||||
|
|
||||||
m_Option_FTZ = new pxCheckBox( this, _("Flush to Zero") );
|
|
||||||
m_Option_DAZ = new pxCheckBox( this, _("Denormals are Zero") );
|
|
||||||
|
|
||||||
const RadioPanelItem RoundModeChoices[] =
|
const RadioPanelItem RoundModeChoices[] =
|
||||||
{
|
{
|
||||||
RadioPanelItem(_("Nearest")),
|
RadioPanelItem(_("Nearest")),
|
||||||
|
@ -55,27 +52,16 @@ Panels::BaseAdvancedCpuOptions::BaseAdvancedCpuOptions( wxWindow* parent )
|
||||||
|
|
||||||
wxFlexGridSizer& grid = *new wxFlexGridSizer( 4 );
|
wxFlexGridSizer& grid = *new wxFlexGridSizer( 4 );
|
||||||
|
|
||||||
// Clever proportions selected for a fairly nice spacing, with the third
|
// Clever proportions selected for a fairly nice spacing.
|
||||||
// column serving as a buffer between static box and a pair of checkboxes.
|
|
||||||
|
|
||||||
grid.AddGrowableCol( 0, 17 );
|
grid.AddGrowableCol( 0, 22 ); // round mode box size
|
||||||
grid.AddGrowableCol( 1, 22 );
|
grid.AddGrowableCol( 1, 22 ); // clamp mode box size
|
||||||
grid.AddGrowableCol( 2, 1 );
|
|
||||||
grid.AddGrowableCol( 3, 19 );
|
|
||||||
|
|
||||||
wxBoxSizer& s_daz( *new wxBoxSizer( wxVERTICAL ) );
|
|
||||||
s_daz += 12;
|
|
||||||
s_daz += m_Option_FTZ;
|
|
||||||
s_daz += m_Option_DAZ;
|
|
||||||
s_daz += 4;
|
|
||||||
|
|
||||||
*s_round+= m_RoundModePanel | StdExpand();
|
*s_round+= m_RoundModePanel | StdExpand();
|
||||||
*s_clamp+= m_ClampModePanel | StdExpand();
|
*s_clamp+= m_ClampModePanel | StdExpand();
|
||||||
|
|
||||||
grid += s_round | SubGroup();
|
grid += s_round | SubGroup();
|
||||||
grid += s_clamp | SubGroup();
|
grid += s_clamp | SubGroup();
|
||||||
grid += new wxBoxSizer( wxVERTICAL ); // spacer column!
|
|
||||||
grid += &s_daz | pxExpand;
|
|
||||||
|
|
||||||
*this += grid | StdExpand();
|
*this += grid | StdExpand();
|
||||||
}
|
}
|
||||||
|
@ -90,9 +76,6 @@ void Panels::BaseAdvancedCpuOptions::RestoreDefaults()
|
||||||
{
|
{
|
||||||
m_RoundModePanel->SetSelection( 3 ); // Roundmode chop
|
m_RoundModePanel->SetSelection( 3 ); // Roundmode chop
|
||||||
m_ClampModePanel->SetSelection( 1 ); // clamp mode normal
|
m_ClampModePanel->SetSelection( 1 ); // clamp mode normal
|
||||||
|
|
||||||
m_Option_DAZ->SetValue(true);
|
|
||||||
m_Option_FTZ->SetValue(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Panels::AdvancedOptionsFPU::AdvancedOptionsFPU( wxWindow* parent )
|
Panels::AdvancedOptionsFPU::AdvancedOptionsFPU( wxWindow* parent )
|
||||||
|
@ -125,6 +108,10 @@ Panels::AdvancedOptionsVU::AdvancedOptionsVU( wxWindow* parent )
|
||||||
Panels::CpuPanelEE::CpuPanelEE( wxWindow* parent )
|
Panels::CpuPanelEE::CpuPanelEE( wxWindow* parent )
|
||||||
: BaseApplicableConfigPanel_SpecificConfig( parent )
|
: BaseApplicableConfigPanel_SpecificConfig( parent )
|
||||||
{
|
{
|
||||||
|
*this += Text( pxE( "!Panel:EE/IOP:Heading",
|
||||||
|
L"Notice: Most games are fine with the default options. ")
|
||||||
|
) | StdExpand();
|
||||||
|
|
||||||
const RadioPanelItem tbl_CpuTypes_EE[] =
|
const RadioPanelItem tbl_CpuTypes_EE[] =
|
||||||
{
|
{
|
||||||
RadioPanelItem(_("Interpreter"))
|
RadioPanelItem(_("Interpreter"))
|
||||||
|
@ -170,6 +157,9 @@ Panels::CpuPanelEE::CpuPanelEE( wxWindow* parent )
|
||||||
s_recs += s_iop | SubGroup();
|
s_recs += s_iop | SubGroup();
|
||||||
|
|
||||||
*this += &s_recs | StdExpand();
|
*this += &s_recs | StdExpand();
|
||||||
|
// move following line down so EE and VU panels look more uniform.
|
||||||
|
// Use an empty Label (std expanded) so it work with custom font sizes, too.
|
||||||
|
*this += Label(_("")) | StdExpand();
|
||||||
*this += new wxStaticLine( this ) | pxExpand.Border(wxALL, 18);
|
*this += new wxStaticLine( this ) | pxExpand.Border(wxALL, 18);
|
||||||
*this += (m_advancedOptsFpu = new AdvancedOptionsFPU( this )) | StdExpand();
|
*this += (m_advancedOptsFpu = new AdvancedOptionsFPU( this )) | StdExpand();
|
||||||
|
|
||||||
|
@ -182,6 +172,10 @@ Panels::CpuPanelEE::CpuPanelEE( wxWindow* parent )
|
||||||
Panels::CpuPanelVU::CpuPanelVU( wxWindow* parent )
|
Panels::CpuPanelVU::CpuPanelVU( wxWindow* parent )
|
||||||
: BaseApplicableConfigPanel_SpecificConfig( parent )
|
: BaseApplicableConfigPanel_SpecificConfig( parent )
|
||||||
{
|
{
|
||||||
|
*this += Text( pxE( "!Panel:VUs:Heading",
|
||||||
|
L"Notice: Most games are fine with the default options. ")
|
||||||
|
) | StdExpand();
|
||||||
|
|
||||||
const RadioPanelItem tbl_CpuTypes_VU[] =
|
const RadioPanelItem tbl_CpuTypes_VU[] =
|
||||||
{
|
{
|
||||||
RadioPanelItem(_("Interpreter"))
|
RadioPanelItem(_("Interpreter"))
|
||||||
|
@ -335,8 +329,8 @@ void Panels::CpuPanelVU::OnRestoreDefaults(wxCommandEvent &evt)
|
||||||
void Panels::BaseAdvancedCpuOptions::ApplyRoundmode( SSE_MXCSR& mxcsr )
|
void Panels::BaseAdvancedCpuOptions::ApplyRoundmode( SSE_MXCSR& mxcsr )
|
||||||
{
|
{
|
||||||
mxcsr.RoundingControl = m_RoundModePanel->GetSelection();
|
mxcsr.RoundingControl = m_RoundModePanel->GetSelection();
|
||||||
mxcsr.DenormalsAreZero = m_Option_DAZ->GetValue();
|
mxcsr.DenormalsAreZero = 1;
|
||||||
mxcsr.FlushToZero = m_Option_FTZ->GetValue();
|
mxcsr.FlushToZero = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Panels::AdvancedOptionsFPU::Apply()
|
void Panels::AdvancedOptionsFPU::Apply()
|
||||||
|
@ -366,9 +360,6 @@ void Panels::AdvancedOptionsFPU::ApplyConfigToGui( AppConfig& configToApply, int
|
||||||
const Pcsx2Config::CpuOptions& cpuOps( configToApply.EmuOptions.Cpu );
|
const Pcsx2Config::CpuOptions& cpuOps( configToApply.EmuOptions.Cpu );
|
||||||
const Pcsx2Config::RecompilerOptions& recOps( cpuOps.Recompiler );
|
const Pcsx2Config::RecompilerOptions& recOps( cpuOps.Recompiler );
|
||||||
|
|
||||||
m_Option_FTZ->SetValue( cpuOps.sseMXCSR.FlushToZero );
|
|
||||||
m_Option_DAZ->SetValue( cpuOps.sseMXCSR.DenormalsAreZero );
|
|
||||||
|
|
||||||
m_RoundModePanel->SetSelection( cpuOps.sseMXCSR.RoundingControl );
|
m_RoundModePanel->SetSelection( cpuOps.sseMXCSR.RoundingControl );
|
||||||
|
|
||||||
if( recOps.fpuFullMode ) m_ClampModePanel->SetSelection( 3 );
|
if( recOps.fpuFullMode ) m_ClampModePanel->SetSelection( 3 );
|
||||||
|
@ -406,9 +397,6 @@ void Panels::AdvancedOptionsVU::ApplyConfigToGui( AppConfig& configToApply, int
|
||||||
const Pcsx2Config::CpuOptions& cpuOps( configToApply.EmuOptions.Cpu );
|
const Pcsx2Config::CpuOptions& cpuOps( configToApply.EmuOptions.Cpu );
|
||||||
const Pcsx2Config::RecompilerOptions& recOps( cpuOps.Recompiler );
|
const Pcsx2Config::RecompilerOptions& recOps( cpuOps.Recompiler );
|
||||||
|
|
||||||
m_Option_FTZ->SetValue( cpuOps.sseVUMXCSR.FlushToZero );
|
|
||||||
m_Option_DAZ->SetValue( cpuOps.sseVUMXCSR.DenormalsAreZero );
|
|
||||||
|
|
||||||
m_RoundModePanel->SetSelection( cpuOps.sseVUMXCSR.RoundingControl );
|
m_RoundModePanel->SetSelection( cpuOps.sseVUMXCSR.RoundingControl );
|
||||||
|
|
||||||
if( recOps.vuSignOverflow ) m_ClampModePanel->SetSelection( 3 );
|
if( recOps.vuSignOverflow ) m_ClampModePanel->SetSelection( 3 );
|
||||||
|
|
Loading…
Reference in New Issue