# linux/x11: Prioritize rendering in X11 event loop \(\#13468\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5a8c2a4a884fe049d92406caea2fa86a90e2f51d

Requested commit: 5a8c2a4a884fe049d92406caea2fa86a90e2f51d

Commit: 5a8c2a4a884fe049d92406caea2fa86a90e2f51d

Tree: 36eb7673a3a552d490c6e8ce262cdad5b1d1951c

Author: Thorsten Ball

Committer: GitHub

## Message

```
linux/x11: Prioritize rendering in X11 event loop (#13468)

This is a small change that aims to address frames being dropped when we
get a ton of X11 input events.

What it does, in short, is to first read all X11 input events and then
prioritize the rendering.

In my testing, it causes less frames to be dropped when the system is
under heavy load and lots of input events are being created.

Release Notes:

- N/A
```

## Parents

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

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