# Gpui web dont repaint \(\#62327\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 417d03305ac194470f5d85a4b584c34dcec8cf57

Requested commit: 417d03305ac194470f5d85a4b584c34dcec8cf57

Commit: 417d03305ac194470f5d85a4b584c34dcec8cf57

Tree: bb18132cfb6ee76c2f53b1adeac4021fcd396a5b

Author: Cameron Mcloughlin

Committer: GitHub

## Message

```
Gpui web dont repaint (#62327)

Currently, GPUI on web calls `requestAnimationFrame` every frame, which
causes it to do meaningful GPU work every frame, even if it was
identical.

This PR makes GPUI only call `requestAnimationFrame` when it has new
content to display.

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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