mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
D3D9: Enable device-ex by default.
This commit is contained in:
parent
c497469cc0
commit
d9614c7b57
2 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue