From e7986838d84548efeec34f685fda23000ba13928 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 Dec 2016 17:16:00 +0530 Subject: [PATCH] Make rendering faster --- kitty/kitty.conf | 4 ++-- kitty/main.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 6d7094855..6226bd4a7 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -45,9 +45,9 @@ wheel_scroll_multiplier 5.0 click_interval 0.5 # Delay (in milliseconds) between screen updates. Decreasing it, increases fps -# at the cost of more CPU usage. The default value yields ~50fps which is more +# at the cost of more CPU usage. The default value yields ~100fps which is more # that sufficient for most uses. -repaint_delay 20 +repaint_delay 10 # Hide mouse cursor after the specified number of seconds of the mouse not being used. Set to # zero or a negative number to disable mouse cursor hiding. diff --git a/kitty/main.py b/kitty/main.py index 2c3da82f2..cd5fa960d 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -58,7 +58,9 @@ def clear_buffers(window, opts): glClear(GL_COLOR_BUFFER_BIT) window.swap_buffers() glClear(GL_COLOR_BUFFER_BIT) - glfw_swap_interval(1) + # We dont turn this on as it causes rendering performance to be much worse, + # for example, dragging the mouse to select is laggy + # glfw_swap_interval(1) def dispatch_pending_calls(tabs):