make debug mode run similar speed (opt-level=1 + no validation layers)

This commit is contained in:
2025-11-22 04:02:29 -05:00
parent 7644aa83bb
commit ac6ee0b119
2 changed files with 4 additions and 0 deletions

View File

@@ -26,3 +26,6 @@ path = "src/bin/client/main.rs"
[[bin]] [[bin]]
name = "openworm-server" name = "openworm-server"
path = "src/bin/server/main.rs" path = "src/bin/server/main.rs"
[profile.dev.package."*"]
opt-level = 1

View File

@@ -72,6 +72,7 @@ impl Renderer {
let instance = Instance::new(&InstanceDescriptor { let instance = Instance::new(&InstanceDescriptor {
backends: Backends::PRIMARY, backends: Backends::PRIMARY,
flags: InstanceFlags::empty(),
..Default::default() ..Default::default()
}); });