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:
@@ -0,0 +1 @@
|
||||
/target
|
||||
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "chaos-game-rs"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
bevy = "0.16"
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
+14
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user