mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Use CPU for counting ticks instead of scheduler
This commit is contained in:
parent
7343497f36
commit
97f97dc6e2
3 changed files with 36 additions and 36 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "arm_defs.hpp"
|
||||
|
||||
CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel) {
|
||||
CPU::CPU(Memory& mem, Kernel& kernel) : mem(mem), env(mem, kernel, scheduler) {
|
||||
cp15 = std::make_shared<CP15>();
|
||||
|
||||
Dynarmic::A32::UserConfig config;
|
||||
|
@ -32,6 +32,8 @@ void CPU::reset() {
|
|||
// Reset scheduler and add a VBlank event
|
||||
scheduler.reset();
|
||||
scheduler.addEvent(Scheduler::EventType::VBlank, ticksPerSec / 60);
|
||||
|
||||
printf("%lld\n", scheduler.nextTimestamp);
|
||||
}
|
||||
|
||||
#endif // CPU_DYNARMIC
|
Loading…
Add table
Add a link
Reference in a new issue