about summary refs log tree commit diff stats
path: root/apps/tile/main.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-16 15:46:36 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-16 16:43:52 -0700
commitf4fb198af313a3a30400ba1a51e0f0425b1da0ca (patch)
tree7791e011af839825fec98a0aa5776c07597da268 /apps/tile/main.mu
parent5029dac235741025ccec7d2c3d5609724cb14525 (diff)
downloadmu-f4fb198af313a3a30400ba1a51e0f0425b1da0ca.tar.gz
6790 experiment: explicit flush
tile is already visibly slow (49x212 screen) :/ So programmer needs more
control over performance.

But this may not be the right approach. That extra flush-stdout in tui.mu
suggests it's either going to be finicky, or we have to flush on every
attribute change. And going through a buffered-file may be slower. May.
Diffstat (limited to 'apps/tile/main.mu')
-rw-r--r--apps/tile/main.mu1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/tile/main.mu b/apps/tile/main.mu
index 7c7065fc..a9d62bb4 100644
--- a/apps/tile/main.mu
+++ b/apps/tile/main.mu
@@ -75,4 +75,5 @@ fn render screen: (addr screen), buf: (addr gap-buffer) {
   move-cursor screen, start-row, start-col
   #
   render-gap-buffer screen, buf
+  flush-stdout
 }