From 55e91538117b6b1ff9ebb051e16b1d58f0e19aa0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 13 Mar 2022 13:56:17 +0100 Subject: [PATCH] Enable anti-aliasing by default --- nih_plug_iced/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nih_plug_iced/src/lib.rs b/nih_plug_iced/src/lib.rs index 91c60f4f..e8c37738 100644 --- a/nih_plug_iced/src/lib.rs +++ b/nih_plug_iced/src/lib.rs @@ -96,7 +96,12 @@ pub trait IcedEditor: 'static + Send + Sync + Sized { /// See [`Application::renderer_settings`]. fn renderer_settings() -> iced_baseview::renderer::settings::Settings { - iced_baseview::renderer::settings::Settings::default() + iced_baseview::renderer::settings::Settings { + // Enable some anti-aliasing by default. Since GUIs are likely very simple and most of + // the work will be on the CPU anyways this should not affect performance much. + antialiasing: Some(iced_baseview::renderer::Antialiasing::MSAAx4), + ..iced_baseview::renderer::settings::Settings::default() + } } /// Handle a parameter update using the GUI context.