chore: create different types of emuloops

This commit is contained in:
2022-03-15 02:29:18 -03:00
parent 5579643d65
commit bdea19f280
2 changed files with 102 additions and 42 deletions

View File

@@ -88,7 +88,7 @@ pub fn main() anyerror!void {
var emu_fps = Atomic(u64).init(0);
// Create Emulator Thread
const emu_thread = try Thread.spawn(.{}, emu.runEmuThread, .{ &quit, &pause, &emu_fps, &scheduler, &cpu, &bus });
const emu_thread = try Thread.spawn(.{}, emu.run, .{ .LimitedFPS, &quit, &pause, &emu_fps, &scheduler, &cpu, &bus });
defer emu_thread.join();
// Initialize SDL