Hacked in a working synchronized MTGS option in the Video panel (it's the only option that actually works at the moment). For debugging purposes.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2237 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-11-22 10:50:27 +00:00
parent bb64ecfcf2
commit 03909ce78c
2 changed files with 10 additions and 0 deletions

View File

@ -204,6 +204,8 @@ namespace Panels
class VideoPanel : public BaseApplicableConfigPanel
{
protected:
pxCheckBox* m_check_SynchronousGS;
public:
VideoPanel( wxWindow* parent );
virtual ~VideoPanel() throw() {}

View File

@ -236,6 +236,10 @@ void Panels::GSWindowSettingsPanel::Apply()
Panels::VideoPanel::VideoPanel( wxWindow* parent ) :
BaseApplicableConfigPanel( parent )
{
m_check_SynchronousGS = new pxCheckBox( this, _("Force Synchronized MTGS"),
_("For troubleshooting possible bugs in the MTGS. Enabling this option will be a big slowdown.")
);
wxPanelWithHelpers* left = new wxPanelWithHelpers( this, wxVERTICAL );
wxPanelWithHelpers* right = new wxPanelWithHelpers( this, wxVERTICAL );
left->SetIdealWidth( (left->GetIdealWidth()-16) / 2 );
@ -256,14 +260,18 @@ Panels::VideoPanel::VideoPanel( wxWindow* parent ) :
*s_table += right | StdExpand();
*this += Heading(L"This panel is not implemented yet.\nIT DOES NOT WORK. AT ALL.");
*this += m_check_SynchronousGS;
*this += s_table;
// TODO:
// Framelimiting / Frameskipping / Vsync
// GS Window Options ( incl. Fullscreen )
// MTGS Forced Synchronization
m_check_SynchronousGS->SetValue( g_Conf->EmuOptions.Video.SynchronousMTGS );
}
void Panels::VideoPanel::Apply()
{
g_Conf->EmuOptions.Video.SynchronousMTGS = m_check_SynchronousGS->GetValue();
}