Replace reactive-rendering feature with unconditional-rendering
This commit is contained in:
parent
c6af79a1d0
commit
14ec330730
3 changed files with 8 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ all-features = true
|
||||||
maintenance = { status = "actively-developed" }
|
maintenance = { status = "actively-developed" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["wgpu", "tiny-skia", "fira-sans", "auto-detect-theme", "reactive-rendering"]
|
default = ["wgpu", "tiny-skia", "fira-sans", "auto-detect-theme"]
|
||||||
# Enables the `wgpu` GPU-accelerated renderer backend
|
# Enables the `wgpu` GPU-accelerated renderer backend
|
||||||
wgpu = ["iced_renderer/wgpu", "iced_widget/wgpu"]
|
wgpu = ["iced_renderer/wgpu", "iced_widget/wgpu"]
|
||||||
# Enables the `tiny-skia` software renderer backend
|
# Enables the `tiny-skia` software renderer backend
|
||||||
|
|
@ -65,8 +65,8 @@ fira-sans = ["iced_renderer/fira-sans"]
|
||||||
auto-detect-theme = ["iced_core/auto-detect-theme"]
|
auto-detect-theme = ["iced_core/auto-detect-theme"]
|
||||||
# Enables strict assertions for debugging purposes at the expense of performance
|
# Enables strict assertions for debugging purposes at the expense of performance
|
||||||
strict-assertions = ["iced_renderer/strict-assertions"]
|
strict-assertions = ["iced_renderer/strict-assertions"]
|
||||||
# Redraws only when widgets react to some runtime event
|
# Redraws on every runtime event, and not only when a widget requests it
|
||||||
reactive-rendering = ["iced_winit/reactive-rendering"]
|
unconditional-rendering = ["iced_winit/unconditional-rendering"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced_core.workspace = true
|
iced_core.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ x11 = ["winit/x11"]
|
||||||
wayland = ["winit/wayland"]
|
wayland = ["winit/wayland"]
|
||||||
wayland-dlopen = ["winit/wayland-dlopen"]
|
wayland-dlopen = ["winit/wayland-dlopen"]
|
||||||
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
|
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
|
||||||
reactive-rendering = []
|
unconditional-rendering = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced_futures.workspace = true
|
iced_futures.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -1051,11 +1051,13 @@ async fn run_instance<P, C>(
|
||||||
&mut messages,
|
&mut messages,
|
||||||
);
|
);
|
||||||
|
|
||||||
#[cfg(not(feature = "reactive-rendering"))]
|
#[cfg(feature = "unconditional-rendering")]
|
||||||
window.raw.request_redraw();
|
window.raw.request_redraw();
|
||||||
|
|
||||||
match ui_state {
|
match ui_state {
|
||||||
#[cfg(feature = "reactive-rendering")]
|
#[cfg(not(
|
||||||
|
feature = "unconditional-rendering"
|
||||||
|
))]
|
||||||
user_interface::State::Updated {
|
user_interface::State::Updated {
|
||||||
redraw_request: Some(redraw_request),
|
redraw_request: Some(redraw_request),
|
||||||
} => match redraw_request {
|
} => match redraw_request {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue