Boilerplate for a "desktop app" mode

I don't need the game loop running at full speed all the time. I'm going
to see about putting Bevy into "low power mode" while still drawing at
regular intervals.
This commit is contained in:
2025-09-07 12:29:33 -05:00
commit 977595ab4d
4 changed files with 23 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

7
Cargo.toml Normal file
View File

@@ -0,0 +1,7 @@
[package]
name = "chaos-game-rs"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = "0.16"

1
src/lib.rs Normal file
View File

@@ -0,0 +1 @@

14
src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
use bevy::{prelude::*, winit::WinitSettings};
fn main() {
App::new()
.insert_resource(WinitSettings::desktop_app())
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
present_mode: bevy::window::PresentMode::AutoNoVsync,
..default()
}),
..default()
}))
.run();
}