Reduce frequency of deterministic mode instruction logging

Do as the comment says and log every (logical) second only.
This commit is contained in:
Mihai Parparita 2024-11-28 16:28:51 +01:00
parent 2d90aff408
commit e4c84c5f80

View File

@ -253,7 +253,7 @@ void run_machine(std::string machine_str, std::string bootrom_path, uint32_t exe
EventManager::get_instance()->disable_input_handlers();
// Log the PC and instruction every second to make it easier to validate
// that execution is the same every time.
deterministic_timer = TimerManager::get_instance()->add_cyclic_timer(MSECS_TO_NSECS(100), [] {
deterministic_timer = TimerManager::get_instance()->add_cyclic_timer(MSECS_TO_NSECS(1000), [] {
PPCDisasmContext ctx;
ctx.instr_code = ppc_cur_instruction;
ctx.instr_addr = 0;