# Introduce a fast path for drawing quads with no borders / corner radii \(\#7231\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5424c8bfd51d0101827f497ab43378eda45b8624

Requested commit: 5424c8bfd51d0101827f497ab43378eda45b8624

Commit: 5424c8bfd51d0101827f497ab43378eda45b8624

Tree: f9970d9bd7f21ad1eea951dee12120f0eb188d4d

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Introduce a fast path for drawing quads with no borders / corner radii (#7231)

This will introduce an extra conditional but saves us from doing a bunch
of math in the simple case of drawing simple rectangles that aren't
rounded or don't have borders.


![Figure_1](https://github.com/zed-industries/zed/assets/482957/cba95ce2-2d9a-46ab-a142-35368334eb75)

Release Notes:

- Improved rendering performance.
```

## Parents

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

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