X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fccbs_bigscreen.cpp;h=96c1a4f2c14faa1e6fd3b2e6580c41600649fa7c;hp=829f84d0a1d9a49a9761e0fe1e514edab25a5e21;hb=49aba7f9193decaea11c17e53a1205dbacc56329;hpb=0b8471f238865dae36baee7d316e88fb7f2f7f8b diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index 829f84d..96c1a4f 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -68,10 +68,12 @@ void main_loop(pqxx::connection &conn) if (mainscreen->check_invalidated()) { mainscreen->draw(framebuf); + ptc_update(framebuf); + conn.await_notification(0, 10000); + } else { + ptc_update(framebuf); + conn.await_notification(0, 200000); } - ptc_update(framebuf); - - conn.await_notification(0, 50000); } int main(int argc, char **argv)