mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
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.
This commit is contained in:
@@ -53,7 +53,7 @@ glow = "0.13"
|
||||
puffin = "0.18"
|
||||
raw-window-handle = "0.6.0"
|
||||
thiserror = "1.0.37"
|
||||
wgpu = { version = "0.19", features = [
|
||||
wgpu = { version = "0.19.1", features = [
|
||||
# Make the renderer `Sync` even on wasm32, because it makes the code simpler:
|
||||
"fragile-send-sync-non-atomic-wasm",
|
||||
] }
|
||||
|
||||
Reference in New Issue
Block a user