summaryrefslogtreecommitdiff
path: root/alacritty/src/logging.rs
diff options
context:
space:
mode:
authorIvan Avdeev <marflon@gmail.com>2020-12-09 21:42:03 -0800
committerGitHub <noreply@github.com>2020-12-10 05:42:03 +0000
commit5ececc310508c1cdc590d4b6dea9ec2e99475c38 (patch)
treee6f53de3713d543a9d5acbf2ccebd1cbbebd2526 /alacritty/src/logging.rs
parent4975be29df848db9b339b5390290e4eb2ac8e140 (diff)
downloadalacritty-5ececc310508c1cdc590d4b6dea9ec2e99475c38.tar.gz
alacritty-5ececc310508c1cdc590d4b6dea9ec2e99475c38.zip
Render underline and strikeout rects in batches
Currently Alacritty requires a separate `draw` call to OpenGL whenever a new rectangle is rendered to the screen. With many rectangles visible, this has a significant impact on rendering performance. Instead of using separate draw calls, the new `RectRenderer` will build a batch of rectangles for rendering. This makes sure that multiple rectangles can be grouped together for single draw calls allowing a reduced impact on rendering time. Since this change is OpenGL 2 friendly, it should not make it more complicated to transition away from the 3.3+ requirements like an alternative instancing based implementation might have.
Diffstat (limited to 'alacritty/src/logging.rs')
0 files changed, 0 insertions, 0 deletions