diff options
author | Pekka Lampila <pekka.lampila@iki.fi> | 2013-05-01 15:48:46 +0300 |
---|---|---|
committer | Florian Diebold <flodiebold@gmail.com> | 2013-05-01 17:50:23 +0200 |
commit | 188f9dc642225a92b26247ac676e6d89b5f50af1 (patch) | |
tree | 4e1bdd077a2f4fb248105e2e5857426d4f498550 /crawl-ref/source/libunix.cc | |
parent | 2c9a494c8f1d29f54b3a417f78e596a801352b2e (diff) | |
download | crawl-ref-188f9dc642225a92b26247ac676e6d89b5f50af1.tar.gz crawl-ref-188f9dc642225a92b26247ac676e6d89b5f50af1.zip |
Combine WebTiles messages and send them together
Idea being avoiding lag caused by TCP ACK etc. Crawl process provides
messages like always, but also sends a special flush message to the
WebTiles server that causes them to actually be delivered.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 27a93fae4d..3060c48039 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -825,6 +825,7 @@ void delay(unsigned int time) #ifdef USE_TILE_WEB tiles.redraw(); tiles.send_message("{\"msg\":\"delay\",\"t\":%d}", time); + tiles.flush_messages(); #endif refresh(); |