add dependencies optimization for projects generated in fyrox-template
@@ -279,7 +279,15 @@ fn init_workspace(base_path: &Path) {
base_path.join("Cargo.toml"),
r#"
[workspace]
-members = ["editor", "executor", "game"]"#,
+members = ["editor", "executor", "game"]"
+
+# Optimize the engine in debug builds, but leave project's code non-optimized.
+# By using this technique, you can still debug you code, but engine will be fully
+# optimized and debug builds won't be terribly slow. With this option, you can
+# compile your game in debug mode, which is much faster (at least x3), than release.
+[profile.dev.package."*"]
+opt-level = 3
+"#,
);
}
