Make rendering faster
This commit is contained in:
parent
40928beeb4
commit
e7986838d8
2 changed files with 5 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue