Always swapping the graphics system so that we see the profiler update.

This commit is contained in:
Ben Vanik
2014-05-30 06:50:07 -07:00
parent 0c55309826
commit 0267efa5cc
2 changed files with 30 additions and 8 deletions

View File

@@ -170,6 +170,11 @@ void D3D11GraphicsSystem::Pump() {
if (xe_pal_now() - last_interrupt_time_ > 500 / 1000.0) {
DispatchInterruptCallback(0);
}
// Force a swap when profiling.
if (Profiler::is_enabled()) {
window_->Swap();
}
}
}