feat(ppu): improve timings + implement BG mode 3 bitmap

This commit is contained in:
2022-01-09 10:22:50 -04:00
parent 581285a434
commit ead6d1ce49
3 changed files with 49 additions and 34 deletions

View File

@@ -2,7 +2,7 @@ const Bus = @import("Bus.zig");
const Scheduler = @import("scheduler.zig").Scheduler;
const Arm7tdmi = @import("cpu.zig").Arm7tdmi;
const cycles_per_frame: u64 = 100; // TODO: How many cycles actually?
const cycles_per_frame: u64 = 160 * (308 * 4);
pub fn runFrame(sched: *Scheduler, cpu: *Arm7tdmi, bus: *Bus) void {
var cycles: u64 = 0;