Commit Graph
20 Commits
Author SHA1 Message Date
Kovid Goyal 66803e6873 Workaround to get graphics working on Apple's buggy products
Apparently some macOS OpenGL drivers cannot handle using a VAO with
attributes that have different divisors/apply to different shaders. So
use a separate VAO for graphics rendering. This is a small performance hit,
but is the price of supporting substandard computers.
2017-10-17 12:15:52 +05:30
Kovid Goyal c87dcdbe3c Tests for displaying graphics 2017-10-03 16:10:04 +05:30
Kovid Goyal 9cfc19e010 Dont shadow the glfw global mouse state variable 2017-09-25 22:00:00 +05:30
Kovid Goyal df4df76d24 Switch to using an opaque block cursor
The text is rendered in the background color on top of the opaque
block cursor. We use the background color since applications can change
both cursor and background colors, so it is up to the application to
ensure the colors have good contrast. Fix #126
2017-09-17 13:03:02 +05:30
Kovid Goyal 728f33700a Fine tune the artificial delays in the render loop
There are now two numbers, repaint_delay and input_delay
that control how often the screen is repainted and how frequently
input received from the child process is processed.

This halves the CPU usage in intensive cases such as scrolling
a file in less. The CPU usage of kitty + X when scrolling is now
significantly lower than all the other terminals on my system.

MROAWR!

...
2017-09-16 08:20:23 +05:30
Kovid Goyal c5e989bc94 Move the key handler to C 2017-09-15 21:46:00 +05:30
Kovid Goyal b2c7272af1 Store key combos that need special handling in a table for fast lookup 2017-09-15 18:06:26 +05:30
Kovid Goyal 9989363ecd Make the URL highlight color configurable 2017-09-15 10:45:27 +05:30
Kovid Goyal b9ac13c379 Move the scroll event handler to C 2017-09-15 10:45:26 +05:30
Kovid Goyal cf6894d74f Port multi-click handler to C 2017-09-15 10:45:25 +05:30
Kovid Goyal a921180224 Port middle-click-to-paste to C 2017-09-15 10:45:25 +05:30
Kovid Goyal 745b6222c2 Start work on migrating the mouse handlers to C 2017-09-15 10:45:25 +05:30
Kovid Goyal 6d8b59cb61 Track window and application titles in C
Allows removing of the last bit fo python from the render loop
2017-09-15 10:45:24 +05:30
Kovid Goyal c41ede4d20 Dont use a timer for mouse hiding 2017-09-15 10:45:24 +05:30
Kovid Goyal 13ac050bf8 Move cursor render call to C 2017-09-15 10:45:24 +05:30
Kovid Goyal 6e4b977128 Track application focus state in global state 2017-09-15 10:45:24 +05:30
Kovid Goyal e6df82b255 Move the char grid render call into C 2017-09-15 10:45:24 +05:30
Kovid Goyal 943a1575ad Move render call for tab bar to C code 2017-09-15 10:45:24 +05:30
Kovid Goyal ccf5391b45 Move visual bell tracking into the Screen object 2017-09-15 10:45:23 +05:30
Kovid Goyal ca5eb4feb5 Start working on central object to track state 2017-09-15 10:45:23 +05:30