# gpui: Improve path rendering & global multisample anti-aliasing \(\#29718\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4fdda8d5a15afc16727d33857ee96b96f7dec3ec)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4fdda8d5a15afc16727d33857ee96b96f7dec3ec

Requested commit: 4fdda8d5a15afc16727d33857ee96b96f7dec3ec

Commit: 4fdda8d5a15afc16727d33857ee96b96f7dec3ec

Tree: 7573dca39cb4c1717d8d5bd50fe76217b722c2d6

Author: Sunli

Committer: GitHub

## Message

```
gpui: Improve path rendering & global multisample anti-aliasing (#29718)

Currently, the rendering path required creating a texture for each path,
which wasted a large amount of video memory. In our application, simply
drawing some charts resulted in video memory usage as high as 5G.

I removed the step of creating path textures and directly drew the paths
on the rendering target, adding post-processing global multi-sampling
anti-aliasing. Drawing paths no longer requires allocating any
additional video memory and also improves the performance of path
rendering.

Release Notes:

- N/A

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
```

## Parents

- [9dc3ac9657e9512adb40814614535f30e0fbeb8b](https://git.cafe/gitcafe/zed/commit/9dc3ac9657e9512adb40814614535f30e0fbeb8b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4fdda8d5a15afc16727d33857ee96b96f7dec3ec?format=markdown)
