TLBWR + Scheduler (SI DMA delay)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user