mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
[egui-wgpu] Do vertex & index buffer in a single copy each (#2820)
* [egui-wgpu] Do vertex & index buffer in a single copy each Also, copy uniform buffer only if necessary. Previously, we did hundreds of small copies via queue.write_buffer which would create a new buffer for each of these copies. Now, there are only two gpu sided copy operations and the memory goes directly to the staging buffer. In a quick debug test on Rerun this decreased time for the `update_buffer` method from about 0.87ms to 0.37ms! * fix comparing padding on UniformBuffer in wgpu renderer --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ All notable changes to the `egui-wgpu` integration will be noted in this file.
|
||||
|
||||
## Unreleased
|
||||
* Add `read_screan_rgba` to the egui-wgpu `Painter`, to allow for capturing the current frame when using wgpu. Used in conjuction with `Frame::request_screenshot`. ([#2676](https://github.com/emilk/egui/pull/2676))
|
||||
* Improve performance of `update_buffers` ([#2820](https://github.com/emilk/egui/pull/2820))
|
||||
|
||||
|
||||
## 0.21.0 - 2023-02-08
|
||||
@@ -13,6 +14,7 @@ All notable changes to the `egui-wgpu` integration will be noted in this file.
|
||||
* `egui-wgpu` now only depends on `epaint` instead of the entire `egui` ([#2438](https://github.com/emilk/egui/pull/2438)).
|
||||
* `winit::Painter` now supports transparent backbuffer ([#2684](https://github.com/emilk/egui/pull/2684)).
|
||||
|
||||
|
||||
## 0.20.0 - 2022-12-08 - web support
|
||||
* Renamed `RenderPass` to `Renderer`.
|
||||
* Renamed `RenderPass::execute` to `RenderPass::render`.
|
||||
|
||||
Reference in New Issue
Block a user