From 52f29d336f062712c7b6e2bd063aaadc0e38b415 Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Fri, 28 Dec 2007 18:30:54 +0000 Subject: [PATCH] When compiled with defining DEBUG_PRINT_NUM_CHANGED_TILES, print the number of changed tiles detected in each polling pass. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2387 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/x0vncserver/PollingManager.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unix/x0vncserver/PollingManager.cxx b/unix/x0vncserver/PollingManager.cxx index 83960958..ffc9ed30 100644 --- a/unix/x0vncserver/PollingManager.cxx +++ b/unix/x0vncserver/PollingManager.cxx @@ -218,7 +218,15 @@ bool PollingManager::pollScreen() // Cleanup. delete[] changeFlags; +#ifdef DEBUG_PRINT_NUM_CHANGED_TILES + printf("%3d ", nTilesChanged); + if (m_pollingStep % 32 == 0) { + printf("\n"); + } +#endif + #ifdef DEBUG + // FIXME: Move this to sendChanges(); if (nTilesChanged != 0) { fprintf(stderr, "#%d# ", nTilesChanged); } -- 2.39.5