# Always synchronize terminal before rendering it \(\#4114\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 194e0f3231cc4eab5c04bf3f38ae0c729ae06bb7

Requested commit: 194e0f3231cc4eab5c04bf3f38ae0c729ae06bb7

Commit: 194e0f3231cc4eab5c04bf3f38ae0c729ae06bb7

Tree: a2504638f89b8c8d3a378004cd0f38bc39a3991f

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Always synchronize terminal before rendering it (#4114)

Previously, we were trying not to synchronize the terminal too often
because there could be multiple layout/paint calls prior to rendering a
frame.

Now that we perform a single render pass per frame, we can just
synchronize the terminal state. Not doing so could make it seem like
we're dropping frames.

Release Notes:

- Improved terminal rendering performance.
```

## Parents

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

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

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