Skip to content

Commit 440e71c

Browse files
committed
minor clock bump
1 parent 56bb0e7 commit 440e71c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/System.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class System {
66
const display = new Display(displaySource);
77
const audio = audioSource ? new Audio(audioSource) : null;
88

9-
this.clockRate = 250;
9+
this.clockRate = 300;
1010
this._pid = null;
1111
this._cpu = new CPU(display, audio);
1212
}
@@ -28,7 +28,7 @@ export default class System {
2828
}, 1000/this.clockRate);
2929
this._pid = window.setInterval(() => {
3030
this._cpu.stepTimer();
31-
}, 1000/60);
31+
}, 1000/60); // delay and sound timers run at fixed 60Hz
3232
}
3333

3434
stop() {

0 commit comments

Comments
 (0)