(finally) make the threaded 3D renderer option actually work

This commit is contained in:
StapleButter
2017-06-04 15:55:23 +02:00
parent 568b9fbf49
commit fa2db3826e
3 changed files with 67 additions and 28 deletions

View File

@ -22,6 +22,7 @@
#include "../Config.h"
#include "../NDS.h"
#include "../GPU.h"
#include "../GPU3D.h"
#include "../SPU.h"
#include "InputConfig.h"
@ -283,8 +284,16 @@ void MainFrame::OnReset(wxCommandEvent& event)
void MainFrame::OnEmuConfig(wxCommandEvent& event)
{
bool oldpause = emuthread->EmuIsPaused();
if (!oldpause) emuthread->EmuPause();
EmuConfigDialog dlg(this);
dlg.ShowModal();
// apply threaded 3D setting
GPU3D::SoftRenderer::SetupRenderThread();
if (!oldpause) emuthread->EmuRun();
}
void MainFrame::OnInputConfig(wxCommandEvent& event)