Files
zed/crates
Cameron Mcloughlin bbacc15a4f gpui_web: Flatten webgl texel loading (#64337)
The webGL backend uses textures to upload quads to the GPU, since it
doesn't have storage buffers. Each quad is stored in 10 texels, and we
previously fetched each texel 4 times. Although texel fetches are
cached, the extra bookkeeping optimized badly, and lead to bad
performance.

This change replaces the `read_word` calls with `fetch_texel_instance`,
and manually unrolls this loop. This gave the following frame time
improvements scrolling through delta web:

- desktop, 9950x3d iGPU, 1440p, firefox:  ~3.3x faster
- mobile, Pixel 10 Pro, firefox: ~23x faster

---

Release Notes:

- [GPUI] Improved performance of webGL quad upload, around a ~3x frame
time reduction in typical cases
2026-09-16 23:23:23 +00:00
..
2026-08-09 22:29:52 +00:00
2026-09-04 22:54:09 +00:00
2026-09-11 09:13:44 +00:00
2026-09-11 09:13:44 +00:00
2026-05-04 06:30:47 +00:00
2026-09-02 18:21:25 +00:00
…
2026-09-11 09:13:44 +00:00
2026-09-02 18:21:25 +00:00
2026-08-09 22:29:52 +00:00
2026-08-09 22:29:52 +00:00