X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fccbs_bigscreen.cpp;h=96c1a4f2c14faa1e6fd3b2e6580c41600649fa7c;hp=829f84d0a1d9a49a9761e0fe1e514edab25a5e21;hb=186cdc7e5e3d5de43015985401c79e9fb5105144;hpb=865e85b2e5da68f6bf0b907d239f2277579382a6 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)