Writes to NVR time registers no longer schedule a NVR write to disk, should reduce the emulator's writes to disk and therefore, % drops.
This commit is contained in:
@@ -580,6 +580,7 @@ nvr_reg_common_write(uint16_t reg, uint8_t val, nvr_t *nvr, local_t *local)
|
|||||||
return;
|
return;
|
||||||
if (nvr->regs[reg] != val) {
|
if (nvr->regs[reg] != val) {
|
||||||
nvr->regs[reg] = val;
|
nvr->regs[reg] = val;
|
||||||
|
if ((reg >= 0x0d) && ((local->cent == 0xff) || (reg != local->cent)))
|
||||||
nvr_dosave = 1;
|
nvr_dosave = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -643,7 +644,7 @@ nvr_reg_write(uint16_t reg, uint8_t val, void *priv)
|
|||||||
/* Update internal clock. */
|
/* Update internal clock. */
|
||||||
time_get(nvr, &tm);
|
time_get(nvr, &tm);
|
||||||
nvr_time_set(&tm);
|
nvr_time_set(&tm);
|
||||||
nvr_dosave = 1;
|
// nvr_dosave = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user