From 5c015f1baafa164408a5465e78960ff538cd8e27 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 13 Nov 2023 15:41:15 -0700 Subject: [PATCH] Enable libcosmic wgpu backend for performance --- Cargo.lock | 1 + Cargo.toml | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 193b724..a05c11c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2458,6 +2458,7 @@ dependencies = [ "iced_runtime", "iced_style", "iced_tiny_skia", + "iced_wgpu", "iced_widget", "iced_winit", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index fe28f0f..0ad98c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ features = ["syntect", "vi"] git = "https://github.com/pop-os/libcosmic" branch = "menu" default-features = false -features = ["winit"] +features = ["winit", "wgpu"] #path = "../libcosmic" [patch.crates-io] diff --git a/src/main.rs b/src/main.rs index 4ab0eae..caad441 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ lazy_static::lazy_static! { } fn main() -> Result<(), Box> { - env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("warn")).init(); localize::localize();