TLBWR + Scheduler (SI DMA delay)

This commit is contained in:
Simone Coco
2022-10-21 16:49:52 +02:00
parent a8fda9770c
commit eadb4594f5
25 changed files with 167 additions and 131 deletions

View File

@@ -3,6 +3,7 @@
#include <Window.hpp>
#include <algorithm>
#include "m64.hpp"
#include <Scheduler.hpp>
namespace n64 {
Core::Core() {
@@ -62,7 +63,7 @@ void Core::Run(Window& window, float volumeL, float volumeR) {
}
mmio.ai.Step(mem, cpu.regs, 1, volumeL, volumeR);
mem.scheduler.handleEvents(1, mem, cpu.regs);
scheduler.tick(1, mem, cpu.regs);
}
cycles -= mmio.vi.cyclesPerHalfline;
@@ -172,9 +173,5 @@ void Core::UpdateController(const u8* state) {
controller.joy_y = 0;
}
}
if(tas_movie_loaded()) {
controller = tas_next_inputs();
}
}
}