GSdx: Disabled requesting of thread safe D3D devices. This is a speedup, and we shouldn't need the safety.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1553 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-07-22 19:04:48 +00:00
parent 3599acc618
commit 0b6ed4bc15
3 changed files with 4 additions and 3 deletions

View File

@ -87,7 +87,7 @@ bool GSDevice10::Create(GSWnd* wnd, bool vsync)
scd.Windowed = TRUE;
uint32 flags = 0;
flags = D3D10_CREATE_DEVICE_SINGLETHREADED; //disables thread safety, should be fine (speedup)
#ifdef DEBUG
flags |= D3D10_CREATE_DEVICE_DEBUG;
#endif

View File

@ -87,7 +87,7 @@ bool GSDevice11::Create(GSWnd* wnd, bool vsync)
scd.Windowed = TRUE;
uint32 flags = 0;
flags = D3D11_CREATE_DEVICE_SINGLETHREADED; //disables thread safety, should be fine (speedup)
#ifdef DEBUG
flags |= D3D11_CREATE_DEVICE_DEBUG;
#endif

View File

@ -304,7 +304,8 @@ bool GSDevice9::Reset(int w, int h, int mode)
if(!m_dev)
{
uint32 flags = D3DCREATE_MULTITHREADED | (m_d3dcaps.VertexProcessingCaps ? D3DCREATE_HARDWARE_VERTEXPROCESSING : D3DCREATE_SOFTWARE_VERTEXPROCESSING);
//D3DCREATE_MULTITHREADED flag shouldn't be needed
uint32 flags = m_d3dcaps.VertexProcessingCaps ? D3DCREATE_HARDWARE_VERTEXPROCESSING : D3DCREATE_SOFTWARE_VERTEXPROCESSING;
hr = m_d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, (HWND)m_wnd->GetHandle(), flags, &m_pp, &m_dev);