From 2e23b93ca1737859d3052bcd813be402a513b987 Mon Sep 17 00:00:00 2001 From: Florrie Date: Fri, 19 Jul 2019 16:11:23 -0300 Subject: Frame delay = 50 on normal client, 100 on telnet --- client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.js') diff --git a/client.js b/client.js index 190c087..a899c2d 100644 --- a/client.js +++ b/client.js @@ -16,7 +16,7 @@ const { } } = require('./tui-lib') -const setupClient = async ({backend, writable, interfacer, appConfig}) => { +const setupClient = async ({backend, writable, interfacer, appConfig, frameRate = 50}) => { const cleanTerminal = () => { writable.write(ansi.cleanCursor()) writable.write(ansi.disableAlternateScreen()) @@ -81,7 +81,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => { const renderInterval = setInterval(() => { root.renderTo(flushable) flushable.flush() - }, 100) + }, frameRate) return {appElement, cleanTerminal, flushable, renderInterval} } -- cgit 1.3.0-6-gf8a5