]> skyeroc.xyz Git - dgamelaunch/commit
Making watching more efficient:
authorJilles Tjoelker <jilles@stack.nl>
Sun, 22 Aug 2004 22:32:10 +0000 (22:32 +0000)
committerJilles Tjoelker <jilles@stack.nl>
Sun, 22 Aug 2004 22:32:10 +0000 (22:32 +0000)
commite31ca985eed6361a3a730044f60e06ab1968498c
tree7915ef3a13f13de0664fa5eb15b398301f342285
parentbaa776486f9ac04c5727e71156ca5fef2c2a205c
Making watching more efficient:
* Don't uselessly read the ttyrec file at the start.
* Toggle the ttyrec file between buffered and non-buffered. Non-buffered I/O
  via stdio can be very inefficient.
* Keep stdout buffered, and flush it when waiting for a key or more ttyrec
  data.

Tested somewhat on my FreeBSD 4 machine.

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@331 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
ttyplay.c