Patch 8.2.2008
Problem:    MS-Windows GUI: handling channel messages lags.
Solution:   Reduce the wait time from 100 to 10 msec. (closes #7097)
Files:      src/gui_w32.c


*** ../vim-8.2.2007/src/gui_w32.c       2020-10-29 20:08:17.426500447 +0100
--- src/gui_w32.c       2020-11-18 15:08:43.511647490 +0100
***************
*** 2134,2140 ****
                break;
            }
            else if (input_available()
!                   || MsgWaitForMultipleObjects(0, NULL, FALSE, 100,
                                                  QS_ALLINPUT) != WAIT_TIMEOUT)
                break;
        }
--- 2134,2143 ----
                break;
            }
            else if (input_available()
!                   // TODO: The 10 msec is a compromise between laggy response
!                   // and consuming more CPU time.  Better would be to handle
!                   // channel messages when they arrive.
!                   || MsgWaitForMultipleObjects(0, NULL, FALSE, 10,
                                                  QS_ALLINPUT) != WAIT_TIMEOUT)
                break;
        }
***************
*** 8458,8464 ****
      TOOLINFOW *pti;
      int               ToolInfoSize;
  
!     if (multiline_balloon_available() == TRUE)
        ToolInfoSize = sizeof(TOOLINFOW_NEW);
      else
        ToolInfoSize = sizeof(TOOLINFOW);
--- 8461,8467 ----
      TOOLINFOW *pti;
      int               ToolInfoSize;
  
!     if (multiline_balloon_available())
        ToolInfoSize = sizeof(TOOLINFOW_NEW);
      else
        ToolInfoSize = sizeof(TOOLINFOW);
***************
*** 8481,8487 ****
      pti->hinst = 0; // Don't use string resources
      pti->uId = ID_BEVAL_TOOLTIP;
  
!     if (multiline_balloon_available() == TRUE)
      {
        RECT rect;
        TOOLINFOW_NEW *ptin = (TOOLINFOW_NEW *)pti;
--- 8484,8490 ----
      pti->hinst = 0; // Don't use string resources
      pti->uId = ID_BEVAL_TOOLTIP;
  
!     if (multiline_balloon_available())
      {
        RECT rect;
        TOOLINFOW_NEW *ptin = (TOOLINFOW_NEW *)pti;
*** ../vim-8.2.2007/src/version.c       2020-11-18 12:23:55.129054817 +0100
--- src/version.c       2020-11-18 15:21:18.781806327 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2008,
  /**/

-- 
       We're knights of the Round Table
       Our shows are formidable
       But many times
       We're given rhymes
       That are quite unsingable
       We're opera mad in Camelot
       We sing from the diaphragm a lot.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202011181422.0AIEMLDh060053%40masaka.moolenaar.net.

Raspunde prin e-mail lui