# wgpu: Cache atlas bind groups \(\#64434\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a434bb7ee275cefa348a2bfaf27dc30280bf38f7

Requested commit: a434bb7ee275cefa348a2bfaf27dc30280bf38f7

Commit: a434bb7ee275cefa348a2bfaf27dc30280bf38f7

Tree: d204e4c8fb3dc0cfb47e5655a6ad640fa94c132a

Author: Cameron Mcloughlin

Committer: GitHub

## Message

```
wgpu: Cache atlas bind groups (#64434)

Previously, we created texture atlas bind groups every frame (once per
sprite group). This showed up in delta web mobile profiling.

This PR reuses them across frames, which saved ~5% frame time on the
delta web thread view on a pixel 10 pro.

---

Release Notes:

- [GPUI]: Improved performance on wgpu by caching atlas bind groups
```

## Parents

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

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