D3D9: Enable device-ex by default.

This commit is contained in:
Branimir Karadžić 2015-10-29 20:41:19 -07:00
parent c497469cc0
commit d9614c7b57
2 changed files with 12 additions and 1 deletions

View File

@ -727,6 +727,17 @@ namespace bgfx { namespace d3d9
mbstowcs(s_viewNameW[ii], name, BGFX_CONFIG_MAX_VIEW_NAME_RESERVED);
}
if (NULL != m_deviceEx)
{
int32_t gpuPriority;
DX_CHECK(m_deviceEx->GetGPUThreadPriority(&gpuPriority) );
BX_TRACE("GPU thread priority: %d", gpuPriority);
uint32_t maxLatency;
DX_CHECK(m_deviceEx->GetMaximumFrameLatency(&maxLatency) );
BX_TRACE("GPU max frame latency: %d", maxLatency);
}
postReset();
m_initialized = true;

View File

@ -6,7 +6,7 @@
#ifndef BGFX_RENDERER_D3D9_H_HEADER_GUARD
#define BGFX_RENDERER_D3D9_H_HEADER_GUARD
#define BGFX_CONFIG_RENDERER_DIRECT3D9EX (BX_PLATFORM_WINDOWS && 0)
#define BGFX_CONFIG_RENDERER_DIRECT3D9EX BX_PLATFORM_WINDOWS
#if BX_PLATFORM_WINDOWS
# include <sal.h>