Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This removes the Lock Thread to Core option. Please file your complai…
…nts appropriately.
  • Loading branch information
Sonicadvance1 committed Jan 14, 2013
1 parent 4ea4f2e commit 30d4259
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 22 deletions.
2 changes: 0 additions & 2 deletions Source/Core/Core/Src/ConfigManager.cpp
Expand Up @@ -221,7 +221,6 @@ void SConfig::SaveSettings()
ini.Set("Core", "DSPThread", m_LocalCoreStartupParameter.bDSPThread);
ini.Set("Core", "DSPHLE", m_LocalCoreStartupParameter.bDSPHLE);
ini.Set("Core", "SkipIdle", m_LocalCoreStartupParameter.bSkipIdle);
ini.Set("Core", "LockThreads", m_LocalCoreStartupParameter.bLockThreads);
ini.Set("Core", "DefaultGCM", m_LocalCoreStartupParameter.m_strDefaultGCM);
ini.Set("Core", "DVDRoot", m_LocalCoreStartupParameter.m_strDVDRoot);
ini.Set("Core", "Apploader", m_LocalCoreStartupParameter.m_strApploader);
Expand Down Expand Up @@ -361,7 +360,6 @@ void SConfig::LoadSettings()
ini.Get("Core", "DSPHLE", &m_LocalCoreStartupParameter.bDSPHLE, true);
ini.Get("Core", "CPUThread", &m_LocalCoreStartupParameter.bCPUThread, true);
ini.Get("Core", "SkipIdle", &m_LocalCoreStartupParameter.bSkipIdle, true);
ini.Get("Core", "LockThreads", &m_LocalCoreStartupParameter.bLockThreads, false);
ini.Get("Core", "DefaultGCM", &m_LocalCoreStartupParameter.m_strDefaultGCM);
ini.Get("Core", "DVDRoot", &m_LocalCoreStartupParameter.m_strDVDRoot);
ini.Get("Core", "Apploader", &m_LocalCoreStartupParameter.m_strApploader);
Expand Down
7 changes: 2 additions & 5 deletions Source/Core/Core/Src/Core.cpp
Expand Up @@ -310,8 +310,7 @@ void CpuThread()
g_video_backend->Video_Prepare();
}

if (_CoreParameter.bLockThreads)
Common::SetCurrentThreadAffinity(1); // Force to first core
Common::SetCurrentThreadAffinity(1); // Force to first core

#if defined(_WIN32) && defined(_M_X64)
EMM::InstallExceptionHandler(); // Let's run under memory watch
Expand Down Expand Up @@ -344,8 +343,7 @@ void FifoPlayerThread()
Common::SetCurrentThreadName("FIFO-GPU thread");
}

if (_CoreParameter.bLockThreads)
Common::SetCurrentThreadAffinity(1); // Force to first core
Common::SetCurrentThreadAffinity(1); // Force to first core

g_bStarted = true;

Expand All @@ -371,7 +369,6 @@ void EmuThread()

Common::SetCurrentThreadName("Emuthread - Starting");

if (_CoreParameter.bLockThreads)
{
if (cpu_info.num_cores > 3) // Force to third, non-HT core
Common::SetCurrentThreadAffinity(4);
Expand Down
4 changes: 1 addition & 3 deletions Source/Core/Core/Src/CoreParameter.cpp
Expand Up @@ -45,8 +45,7 @@ SCoreStartupParameter::SCoreStartupParameter()
bEnableFPRF(false),
bCPUThread(true), bDSPThread(false), bDSPHLE(true),
bSkipIdle(true), bNTSC(false), bForceNTSCJ(false),
bHLE_BS2(true), bLockThreads(false),
bEnableCheats(false),
bHLE_BS2(true), bEnableCheats(false),
bMergeBlocks(false),
bRunCompareServer(false), bRunCompareClient(false),
bMMU(false), bMMUBAT(false), iTLBHack(0), bVBeam(false),
Expand Down Expand Up @@ -74,7 +73,6 @@ void SCoreStartupParameter::LoadDefaults()
bRunCompareServer = false;
bDSPHLE = true;
bDSPThread = true;
bLockThreads = true;
bEnableFPRF = false;
bMMU = false;
bMMUBAT = false;
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/Src/CoreParameter.h
Expand Up @@ -103,7 +103,6 @@ struct SCoreStartupParameter
bool bNTSC;
bool bForceNTSCJ;
bool bHLE_BS2;
bool bLockThreads;
bool bEnableCheats;
bool bMergeBlocks;

Expand Down
1 change: 0 additions & 1 deletion Source/Core/Core/Src/HW/DSPLLE/DSPLLE.cpp
Expand Up @@ -104,7 +104,6 @@ void DSPLLE::dsp_thread(DSPLLE *dsp_lle)
{
Common::SetCurrentThreadName("DSP thread");

if (SConfig::GetInstance().m_LocalCoreStartupParameter.bLockThreads)
{
if (cpu_info.num_cores > 3)
{
Expand Down
8 changes: 0 additions & 8 deletions Source/Core/DolphinWX/Src/ConfigMain.cpp
Expand Up @@ -112,7 +112,6 @@ EVT_CHOICE(ID_FRAMELIMIT, CConfigMain::CoreSettingsChanged)
EVT_CHECKBOX(ID_FRAMELIMIT_USEFPSFORLIMITING, CConfigMain::CoreSettingsChanged)

EVT_RADIOBOX(ID_CPUENGINE, CConfigMain::CoreSettingsChanged)
EVT_CHECKBOX(ID_LOCKTHREADS, CConfigMain::CoreSettingsChanged)
EVT_CHECKBOX(ID_NTSCJ, CConfigMain::CoreSettingsChanged)


Expand Down Expand Up @@ -211,7 +210,6 @@ void CConfigMain::UpdateGUI()
EnableCheats->Disable();

CPUEngine->Disable();
LockThreads->Disable();
_NTSCJ->Disable();

// Disable stuff on AudioPage
Expand Down Expand Up @@ -332,7 +330,6 @@ void CConfigMain::InitializeGUIValues()

// General - Advanced
CPUEngine->SetSelection(startup_params.iCPUCore);
LockThreads->SetValue(startup_params.bLockThreads);
_NTSCJ->SetValue(startup_params.bForceNTSCJ);


Expand Down Expand Up @@ -546,7 +543,6 @@ void CConfigMain::CreateGUIControls()
UseFPSForLimiting = new wxCheckBox(GeneralPage, ID_FRAMELIMIT_USEFPSFORLIMITING, _("Limit by FPS"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
// Core Settings - Advanced
CPUEngine = new wxRadioBox(GeneralPage, ID_CPUENGINE, _("CPU Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_CPUEngine, 0, wxRA_SPECIFY_ROWS);
LockThreads = new wxCheckBox(GeneralPage, ID_LOCKTHREADS, _("Lock Threads to Cores"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
_NTSCJ = new wxCheckBox(GeneralPage, ID_NTSCJ, _("Force Console as NTSC-J"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);

// Populate the General settings
Expand All @@ -562,7 +558,6 @@ void CConfigMain::CreateGUIControls()

wxStaticBoxSizer* const sbAdvanced = new wxStaticBoxSizer(wxVERTICAL, GeneralPage, _("Advanced Settings"));
sbAdvanced->Add(CPUEngine, 0, wxALL, 5);
sbAdvanced->Add(LockThreads, 0, wxALL, 5);
sbAdvanced->Add(_NTSCJ, 0, wxALL, 5);

wxBoxSizer* const sGeneralPage = new wxBoxSizer(wxVERTICAL);
Expand Down Expand Up @@ -860,9 +855,6 @@ void CConfigMain::CoreSettingsChanged(wxCommandEvent& event)
main_frame->g_pCodeWindow->GetMenuBar()->Check(IDM_INTERPRETER,
SConfig::GetInstance().m_LocalCoreStartupParameter.iCPUCore?false:true);
break;
case ID_LOCKTHREADS:
SConfig::GetInstance().m_LocalCoreStartupParameter.bLockThreads = LockThreads->IsChecked();
break;
case ID_NTSCJ:
SConfig::GetInstance().m_LocalCoreStartupParameter.bForceNTSCJ = _NTSCJ->IsChecked();
break;
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/DolphinWX/Src/ConfigMain.h
Expand Up @@ -69,7 +69,6 @@ class CConfigMain : public wxDialog
ID_FRAMELIMIT_USEFPSFORLIMITING,

ID_CPUENGINE,
ID_LOCKTHREADS,
ID_DSPTHREAD,

ID_NTSCJ,
Expand Down Expand Up @@ -143,7 +142,6 @@ class CConfigMain : public wxDialog
wxCheckBox* EnableOpenCL;
wxRadioBox* CPUEngine;
wxCheckBox* DSPThread;
wxCheckBox* LockThreads;
wxCheckBox* _NTSCJ;


Expand Down

0 comments on commit 30d4259

Please sign in to comment.