From: Constantin Kaplinsky Date: Fri, 28 Dec 2007 18:30:54 +0000 (+0000) Subject: When compiled with defining DEBUG_PRINT_NUM_CHANGED_TILES, print the number of change... X-Git-Tag: v0.0.90~384^2~82 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52f29d336f062712c7b6e2bd063aaadc0e38b415;p=tigervnc.git 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 --- 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); }