Run IOP Vblank handler on the IOP thread (#1752)

This commit is contained in:
Ziemas
2022-08-14 23:21:02 +02:00
committed by GitHub
parent a77f8ae66d
commit 2acc5250f8
11 changed files with 48 additions and 5 deletions
+3
View File
@@ -209,6 +209,7 @@ void iop_runner(SystemThreadInterface& iface) {
iop.reset_allocator();
ee::LIBRARY_sceSif_register(&iop);
iop::LIBRARY_register(&iop);
Gfx::register_vsync_callback([&iop]() { iop.kernel.signal_vblank(); });
// todo!
dma_init_globals();
@@ -256,6 +257,8 @@ void iop_runner(SystemThreadInterface& iface) {
// So we can wait for that long or until something else needs it to wake up.
iop.wait_run_iop(iop.kernel.dispatch());
}
Gfx::clear_vsync_callback();
}
} // namespace