# Optimize order rendering and border drawing \(\#3762\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3d5b903f78954bbe8d299175f8a5b4faf469c601

Requested commit: 3d5b903f78954bbe8d299175f8a5b4faf469c601

Commit: 3d5b903f78954bbe8d299175f8a5b4faf469c601

Tree: c7ce08cfef101a0190187138d57873c9efb989c0

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Optimize order rendering and border drawing (#3762)

Reverts zed-industries/zed#3761

There was a bug in the previous implementation of `BatchIterator` that
was being masked by how we were using the BSP tree. The bug caused us to
render primitives without honoring the `PrimitiveKind` implicit
ordering.
```

## Parents

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

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

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