iced-rs/iced

Damage tracking / partial present

开放

#367 创建于 2020年5月29日

 (0 条评论) (0 个反应) (0 位负责人)Rust (1,572 个派生)batch import
featurehelp wantedrenderingshell

仓库指标

星标
 (30,491 个星标)
PR 合并指标
 (平均合并 24天 11小时) (30 天内合并 11 个 PR)

描述

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 :)

贡献者指南