comparison src/message.c @ 13150:808625d4b71b v8.0.1449

patch 8.0.1449: slow redrawing with DirectX commit https://github.com/vim/vim/commit/a338adcf222b6a24e26ea5ae6a2ad27f914acb38 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 31 20:51:47 2018 +0100 patch 8.0.1449: slow redrawing with DirectX Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2018 21:00:08 +0100
parents ebb4f6c93598
children a49a5419a83f
comparison
equal deleted inserted replaced
13149:46794b7ab97a 13150:808625d4b71b
2314 * to become invalid. */ 2314 * to become invalid. */
2315 if (gui.in_use) 2315 if (gui.in_use)
2316 gui_undraw_cursor(); 2316 gui_undraw_cursor();
2317 #endif 2317 #endif
2318 /* scrolling up always works */ 2318 /* scrolling up always works */
2319 mch_disable_flush();
2319 screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL); 2320 screen_del_lines(0, 0, 1, (int)Rows, TRUE, 0, NULL);
2321 mch_enable_flush();
2320 2322
2321 if (!can_clear((char_u *)" ")) 2323 if (!can_clear((char_u *)" "))
2322 { 2324 {
2323 /* Scrolling up doesn't result in the right background. Set the 2325 /* Scrolling up doesn't result in the right background. Set the
2324 * background here. It's not efficient, but avoids that we have to do 2326 * background here. It's not efficient, but avoids that we have to do