Periodically fire interrupts.

This commit is contained in:
Ben Vanik
2013-10-13 11:06:13 -07:00
parent 96a857e892
commit cc12f0b96a
3 changed files with 11 additions and 2 deletions

View File

@@ -130,6 +130,11 @@ void D3D11GraphicsSystem::Pump() {
// Dispatch interrupt callback to let the game know it can keep drawing.
DispatchInterruptCallback();
} else {
// If we have gone too long without an interrupt, fire one.
if (xe_pal_now() - last_interrupt_time_ > 16 / 1000.0) {
DispatchInterruptCallback();
}
}
}