From ab4cfd5bc5571b20c1787ce05455ce7a9c894b48 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 1 Mar 2024 14:42:53 -0800 Subject: [PATCH] Enable `iced` wgpu backend, which seems to perform better A good software renderer probably should perform fine where subsurfaces are used like for the actual images. Perhaps more improvement is needed in the renderer. --- Cargo.lock | 1 + Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 3c43254..467f964 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2767,6 +2767,7 @@ dependencies = [ "iced_sctk", "iced_style", "iced_tiny_skia", + "iced_wgpu", "iced_widget", "lazy_static", "palette", diff --git a/Cargo.toml b/Cargo.toml index cea7887..9ed8626 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,10 @@ calloop-wayland-source = "0.3.0" version = "0.14.1" features = ["fluent-system", "desktop-requester"] +[features] +default = ["wgpu"] +wgpu = ["libcosmic/wgpu"] + [profile.dev] # Not usable at opt-level 0, at least with software renderer opt-level = 1