Commit Graph

1051 Commits

Author SHA1 Message Date
Kovid Goyal
6127d2d122 Make the sprite map globally accessible from C code as well as python code
The lock was removed as the Python GIL is sufficient to serialize access
to the SpriteMap structure.
2017-09-15 10:45:10 +05:30
Kovid Goyal
4feff2e2da Fix rendering of strikethrough not working 2017-09-15 10:45:10 +05:30
Kovid Goyal
8624dbac2c Sigh, stupid OpenGL
Apparently glGetUniformIndices has different declarations on different
systems.
2017-09-15 10:45:10 +05:30
Kovid Goyal
4c0cf93562 Fix tab bar not rendering because of selection handling changes 2017-09-15 10:45:10 +05:30
Kovid Goyal
d12573a67d Dont send the color table to the GPU on every frame 2017-09-15 10:45:09 +05:30
Kovid Goyal
d7b433f6b7 API for Uniform Block Objects 2017-09-15 10:45:09 +05:30
Kovid Goyal
b1168f6c6c Handle zero timeout correctly 2017-09-15 10:45:09 +05:30
Kovid Goyal
91e263cabb Fix sub-millisecond and no event waits not working 2017-09-15 10:45:09 +05:30
Kovid Goyal
ed15f2f97e Get the layout of the Cell structure 2017-09-15 10:45:09 +05:30
Kovid Goyal
6689595277 Dont use Py_UCS4 for char_type 2017-09-15 10:45:09 +05:30
Kovid Goyal
34f946fd98 Move rendering of selection to GPU 2017-09-15 10:45:09 +05:30
Kovid Goyal
a5bec84554 ... 2017-09-15 10:45:09 +05:30
Kovid Goyal
0fae3e1b10 ... 2017-09-15 10:45:09 +05:30
Kovid Goyal
a56e1296fd Refactor the tab bar into its own class
Also ensure that Screen APIs are only used in the child thread in the
tab bar
2017-09-15 10:45:09 +05:30
Kovid Goyal
acdeaaeda5 Move the border shaders into their own files 2017-09-15 10:45:08 +05:30
Kovid Goyal
a44e3a3a50 Ensure line numbers reported by the GLSL compiler are correct 2017-09-15 10:45:08 +05:30
Kovid Goyal
db40445572 Do color mapping on the GPU 2017-09-15 10:45:08 +05:30
Kovid Goyal
1d888c9194 Centralise color management into ColorProfile 2017-09-15 10:45:08 +05:30
Kovid Goyal
b50eaa9cbb ColorProfile should belong to Screen 2017-09-15 10:45:08 +05:30
Kovid Goyal
fe764ab6b6 oops 2017-09-15 10:45:08 +05:30
Kovid Goyal
bab4680828 ... 2017-09-15 10:45:08 +05:30
Kovid Goyal
564010c7cd Migrate history.c 2017-09-15 10:45:08 +05:30
Kovid Goyal
052fd46ff9 Migrate sprites.c 2017-09-15 10:45:08 +05:30
Kovid Goyal
4fd8c7cfaa DRYer 2017-09-15 10:45:08 +05:30
Kovid Goyal
37f0cf86d0 Migrated line.c 2017-09-15 10:45:07 +05:30
Kovid Goyal
0cbd3a2820 Start work on using a struct for the cell
Should eventually allow the screen buf to be sent directly to the GPU
without a serialization step.

Migrates line-buf.c
2017-09-15 10:45:07 +05:30
Kovid Goyal
af3c89d79f oops 2017-09-15 10:45:07 +05:30
Kovid Goyal
a1d75eb00d Use a function pointer to avoid a branch in loop() 2017-09-15 10:45:07 +05:30
Kovid Goyal
6176607ac4 Initial stab at switching to poll() instead of select()
Also avoid python code in the child monitoring inner loop
2017-09-15 10:45:07 +05:30
Kovid Goyal
40254625d9 Fix timers not being replaced 2017-09-15 10:45:07 +05:30
Kovid Goyal
29b16d0856 Fix timers not being re-sorted on replace 2017-09-15 10:45:07 +05:30
Kovid Goyal
ff72b1f96f Limit sprite co-ordinates to fit in uint16_t 2017-09-15 10:45:07 +05:30
Kovid Goyal
a429bcbb22 Dont use the glfw timer function as it requires glfwInit 2017-09-15 10:45:07 +05:30
Kovid Goyal
3c7305b93c ... 2017-09-15 10:45:07 +05:30
Kovid Goyal
f9b1a71edd Move the timers implementation to C
It is used int he hot loop for monitoring the child process
2017-09-15 10:45:06 +05:30
Kovid Goyal
2de0c82f18 Fix incorrect full keyboard mode escape codes 2017-09-15 10:44:56 +05:30
Kovid Goyal
cdb12f2049 Fix #122 2017-09-13 14:20:20 +05:30
Kovid Goyal
ca310fc2f2 Add a note about border visibility 2017-09-12 06:52:33 +05:30
Kovid Goyal
273210cb97 Ignore resize requests for very small sizes. Fixes #119 2017-08-28 20:31:01 +05:30
Kovid Goyal
b957ef441c Avoid function name conflict with index from string.h
Hopefully Fixes #118
2017-08-27 21:17:18 +05:30
Kovid Goyal
31775c8b50 ... 2017-08-26 15:19:33 +05:30
Kovid Goyal
8199802b44 Remove unused code 2017-08-26 15:10:55 +05:30
Kovid Goyal
941c553172 Implement an option to adjust the line height
Fixes #116
2017-08-26 14:14:51 +05:30
Kovid Goyal
8ee1c851a1 Optimize the bit twiddling in sprite_position_for 2017-08-26 13:05:18 +05:30
Kovid Goyal
4ce9f550ac Inline to_color for an easy performance boost 2017-08-26 10:52:24 +05:30
Kovid Goyal
7041616837 More semantic handling of profile arg when compiling 2017-08-26 10:36:04 +05:30
Kovid Goyal
6a3c812470 Forgot to remove python profiling from one place 2017-08-26 10:35:11 +05:30
Kovid Goyal
778b090467 ... 2017-08-26 10:25:50 +05:30
Kovid Goyal
a922b4c789 Add instrumentation to analyse kitty performance 2017-08-26 10:24:12 +05:30
Kovid Goyal
e43bf891e4 Print a warning when the specified font family does not exist 2017-08-25 09:55:46 +05:30