iced-rs/iced

Damage tracking / partial present

Aberta

#367 aberto em 29 de mai. de 2020

 (0 comentário) (0 reação) (0 responsável)Rust (1.572 forks)batch import
featurehelp wantedrenderingshell

Métricas do repositório

Stars
 (30.491 estrelas)
Métricas de merge de PR
 (Mesclagem média 24d 11h) (11 fundiu PRs em 30d)

Description

Damage tracking allows for power savings by not rerendering regions unchanged between frames. There's actually two optimizations made possible by tracking damage: in the desktop compositor (you just tell it the region) and in the application (a bit more tricky, but e.g. I've implemented support in WebRender+EGL recently).

Doesn't look like wgpu supports passing the VkPresentRegionKHR yet, so I've raised an issue for this: https://github.com/gfx-rs/wgpu/issues/682

On the new GL backend though, it should be possible to use EGL_KHR_swap_buffers_with_damage (e.g.).

But first, iced should do the actual tracking :)

Guia do colaborador