mirror of https://github.com/PCSX2/pcsx2.git
GUI-Speedhacks: Grayout Instant VU1 when MTVU is enabled
MTVU checked + Instant VU1 checked = MTVU is on MTVU checked + Instant VU1 off = MTVU is on Essentially it doesn’t matter for Instant VU1 be checked or unchecked if MTVU is checked. MTVU off + Instant VU1 checked = Instant VU1 is on MTVU off + Instant VU1 off = both are off Instant VU1 enabled is the old behaviour (so think of it always being enabled in the past). Some games however don’t like this and for those few games they should be off, those kind of games should’ve normally been added as an automatic gamefix or will be in the future.
This commit is contained in:
parent
e36199c499
commit
7704960e1d
|
@ -364,6 +364,7 @@ namespace Panels
|
||||||
void Defaults_Click( wxCommandEvent& evt );
|
void Defaults_Click( wxCommandEvent& evt );
|
||||||
void EECycleRate_Scroll(wxScrollEvent &event);
|
void EECycleRate_Scroll(wxScrollEvent &event);
|
||||||
void VUCycleRate_Scroll(wxScrollEvent &event);
|
void VUCycleRate_Scroll(wxScrollEvent &event);
|
||||||
|
void VUThread_Enable ( wxCommandEvent& evt );
|
||||||
};
|
};
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -242,6 +242,7 @@ Panels::SpeedHacksPanel::SpeedHacksPanel( wxWindow* parent )
|
||||||
Bind(wxEVT_SCROLL_CHANGED, &SpeedHacksPanel::VUCycleRate_Scroll, this, m_slider_eeSkip->GetId());
|
Bind(wxEVT_SCROLL_CHANGED, &SpeedHacksPanel::VUCycleRate_Scroll, this, m_slider_eeSkip->GetId());
|
||||||
Bind(wxEVT_CHECKBOX, &SpeedHacksPanel::OnEnable_Toggled, this, m_check_Enable->GetId());
|
Bind(wxEVT_CHECKBOX, &SpeedHacksPanel::OnEnable_Toggled, this, m_check_Enable->GetId());
|
||||||
Bind(wxEVT_BUTTON, &SpeedHacksPanel::Defaults_Click, this, wxID_DEFAULT);
|
Bind(wxEVT_BUTTON, &SpeedHacksPanel::Defaults_Click, this, wxID_DEFAULT);
|
||||||
|
Bind(wxEVT_CHECKBOX, &SpeedHacksPanel::VUThread_Enable, this, m_check_vuThread->GetId());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Doesn't modify values - only locks(gray out)/unlocks as necessary.
|
// Doesn't modify values - only locks(gray out)/unlocks as necessary.
|
||||||
|
@ -267,11 +268,15 @@ void Panels::SpeedHacksPanel::EnableStuff( AppConfig* configToUse )
|
||||||
m_check_intc->Enable(HacksEnabledAndNoPreset);
|
m_check_intc->Enable(HacksEnabledAndNoPreset);
|
||||||
m_check_waitloop->Enable(HacksEnabledAndNoPreset);
|
m_check_waitloop->Enable(HacksEnabledAndNoPreset);
|
||||||
m_check_fastCDVD->Enable(HacksEnabledAndNoPreset);
|
m_check_fastCDVD->Enable(HacksEnabledAndNoPreset);
|
||||||
m_check_vu1Instant->Enable(hacksEnabled);
|
|
||||||
|
|
||||||
// Grayout MTVU on safest preset
|
// Grayout MTVU on safest preset
|
||||||
m_check_vuThread->Enable(hacksEnabled && (!hasPreset || configToUse->PresetIndex != 0));
|
m_check_vuThread->Enable(hacksEnabled && (!hasPreset || configToUse->PresetIndex != 0));
|
||||||
|
|
||||||
|
// Disables the Instant VU1 checkbox when MTVU is checked in the GUI as reflected in the code.
|
||||||
|
// Makes Instant VU1 toggleable when MTVU is unchecked in the GUI.
|
||||||
|
// Some may think that having MTVU + Instant VU1 checked, can have bad side-effects when it doesn't.
|
||||||
|
m_check_vu1Instant->Enable(hacksEnabled && !m_check_vuThread->GetValue());
|
||||||
|
|
||||||
// Layout necessary to ensure changed slider text gets re-aligned properly
|
// Layout necessary to ensure changed slider text gets re-aligned properly
|
||||||
// and to properly gray/ungray pxStaticText stuff (I suspect it causes a
|
// and to properly gray/ungray pxStaticText stuff (I suspect it causes a
|
||||||
// paint event to be sent on Windows)
|
// paint event to be sent on Windows)
|
||||||
|
@ -368,3 +373,9 @@ void Panels::SpeedHacksPanel::VUCycleRate_Scroll(wxScrollEvent &event)
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Panels::SpeedHacksPanel::VUThread_Enable(wxCommandEvent& evt)
|
||||||
|
{
|
||||||
|
m_check_vu1Instant->Enable(!m_check_vuThread->GetValue());
|
||||||
|
Layout();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue