speed up terminal rendering

This commit is contained in:
Neale Pickett 2017-11-10 01:19:15 +00:00
parent 6902af3db0
commit e076672f82
1 changed files with 37 additions and 37 deletions

View File

@ -7,7 +7,7 @@ HTMLCollection.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
function Terminal(target, bps) { function Terminal(target, bps) {
bps = bps || 1200; bps = bps || 9600;
var outq = []; var outq = [];
var outTimer; var outTimer;
@ -66,7 +66,7 @@ function Terminal(target, bps) {
function start() { function start() {
if (! outTimer) { if (! outTimer) {
outTimer = setInterval(drawElement, 75); outTimer = setInterval(drawElement, 25);
} }
} }