Microprofile integration.

This commit is contained in:
Ben Vanik
2014-05-28 13:59:43 -07:00
parent cd56c30334
commit beb9bd11f0
17 changed files with 864 additions and 13 deletions

View File

@@ -24,6 +24,12 @@ namespace {
void __stdcall D3D11GraphicsSystemVsyncCallback(
D3D11GraphicsSystem* gs, BOOLEAN) {
static bool thread_name_set = false;
if (!thread_name_set) {
thread_name_set = true;
Profiler::ThreadEnter("VsyncTimer");
}
gs->MarkVblank();
gs->DispatchInterruptCallback(0);
}
@@ -53,7 +59,7 @@ void D3D11GraphicsSystem::Initialize() {
(WAITORTIMERCALLBACK)D3D11GraphicsSystemVsyncCallback,
this,
16,
100,
16,
WT_EXECUTEINTIMERTHREAD);
// Create DXGI factory so we can get a swap chain/etc.