Limit CPU display updates to a reasonable number (ie, twice per second)

This commit is contained in:
Jeff 2016-11-14 20:10:18 -08:00 committed by Jeff Parsons
commit 77897275eb
5 changed files with 247 additions and 238 deletions

View file

@ -1067,8 +1067,8 @@ ComputerPDP11.prototype.updateDisplays = function(nUpdate)
* nUpdate will also be -1 whenever the Debugger has modified the state of the machine, implying that we're
* not sure what, if anything, actually changed.
*/
if (this.cpu) this.cpu.updateDisplay(nUpdate);
if (this.panel) this.panel.updateDisplay(nUpdate);
if (this.cpu) this.cpu.updateDisplay(nUpdate || 0);
if (this.panel) this.panel.updateDisplay(nUpdate || 0);
};
/**