egui/crates/egui-wgpu/src
Emil Ernerfeldt 4d1a736016
Add `WgpuConfiguration::desired_maximum_frame_latency` (#3874)
Setting `desired_maximum_frame_latency` to a low value should
theoretically lead to lower latency in winit apps using `egui-wgpu`
(e.g. in `eframe` with `wgpu` backend).

* Replaces https://github.com/emilk/egui/pull/3714
* See also https://github.com/gfx-rs/wgpu/pull/4899

----

It seems like `desired_maximum_frame_latency` has no effect on my Mac. I
lowered my monitor refresh-rate to 30Hz to test, and can see no
difference between `desired_maximum_frame_latency` of `0` or `3`.

Before when experimenting with changing the global `DESIRED_NUM_FRAMES`
in `wgpu` I saw a huge difference, so I wonder what has changed.

I verified that `set_maximum_drawable_count` is being called with either
`1` or `2`, but I perceive no difference between the two.
2024-01-24 09:36:17 +01:00
..
egui.wgsl Improve text redering and do all color operation in gamma space (#2071) 2022-09-24 17:53:11 +02:00
lib.rs Add `WgpuConfiguration::desired_maximum_frame_latency` (#3874) 2024-01-24 09:36:17 +01:00
renderer.rs Update wgpu to 0.19 (#3824) 2024-01-19 10:14:13 +01:00
winit.rs Add `WgpuConfiguration::desired_maximum_frame_latency` (#3874) 2024-01-24 09:36:17 +01:00