From df31483cbd78edaf0883f3d547142a0fb67534c7 Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 6 Apr 2023 21:15:17 -0400 Subject: [PATCH] set opt-level = 1 on the dev profile by default --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 994d9c3..ce9b7fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,3 +3,9 @@ members = [ "ggdt", "examples/*", ] + +# some stuff is becoming noticably slow with default dev profile settings (opt-level = 0). especially any of the +# fancier triangle_2d drawing stuff. while there are many optimizations still left to be made, it seems like a good +# compromise on build time vs optimizations to keep opt-level at 1 while actively developing. +[profile.dev] +opt-level = 1 \ No newline at end of file