]> source.dussan.org Git - tigervnc.git/commitdiff
When compiled with defining DEBUG_PRINT_NUM_CHANGED_TILES, print the number of change...
authorConstantin Kaplinsky <const@tightvnc.com>
Fri, 28 Dec 2007 18:30:54 +0000 (18:30 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Fri, 28 Dec 2007 18:30:54 +0000 (18:30 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2387 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/x0vncserver/PollingManager.cxx

index 8396095847143f31cb55263e826d15b73de6126d..ffc9ed30de9a15babba586657f3ab8aaf295c144 100644 (file)
@@ -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);
   }