egui/crates
Andreas Reich b1f837ca2f
[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>
2023-03-29 19:30:18 +02:00
..
ecolor Add badges to all crates' README.md 2023-02-12 18:08:13 +01:00
eframe eframe: Automatically change theme when system dark/light mode changes (#2750) 2023-03-29 16:39:30 +02:00
egui Replace show_index String with Into<TextWidget> (#2790) 2023-03-29 17:00:31 +02:00
egui-wgpu [egui-wgpu] Do vertex & index buffer in a single copy each (#2820) 2023-03-29 19:30:18 +02:00
egui-winit Only enable instant/wasm-bindgen when building for wasm32 architecture (#2808) 2023-03-29 14:59:45 +02:00
egui_demo_app Release 0.21.0 - Deadlock fix and winit update 2023-02-08 20:11:21 +01:00
egui_demo_lib Fix resizable columns option in the table demo (#2780) 2023-03-29 15:53:56 +02:00
egui_extras Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
egui_glium Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
egui_glow eframe: capture a screenshot using `Frame::request_screenshot` 2023-03-29 16:34:22 +02:00
egui_web Fix broken GitHub source links due to #1940 2022-08-20 15:18:02 +02:00
emath Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
epaint eframe: capture a screenshot using `Frame::request_screenshot` 2023-03-29 16:34:22 +02:00