show fps
Some checks failed
Rust / rustfmt (push) Successful in 24s
Rust / clippy (push) Failing after 2m15s
Rust / build (push) Successful in 2m45s

This commit is contained in:
luckyturtledev 2024-07-07 14:59:39 +02:00
parent eddeda6ba9
commit d3a54938af

View file

@ -15,8 +15,8 @@ use self::{
game::Ghost game::Ghost
}; };
use comfy::{ use comfy::{
init_game_config, pollster, run_comfy_main_async, EngineContext, EngineState, etagere::euclid::default, init_game_config, pollster, run_comfy_main_async,
GameConfig, GameLoop, HashMap, IVec2 DevConfig, EngineContext, EngineState, GameConfig, GameLoop, HashMap, IVec2
}; };
const GAME_NAME: &str = "Powercreep"; const GAME_NAME: &str = "Powercreep";
@ -67,7 +67,16 @@ impl GameLoop for State {
} }
fn config(config: GameConfig) -> GameConfig { fn config(config: GameConfig) -> GameConfig {
config let dev = DevConfig {
#[cfg(debug_assertions)]
show_fps: true,
..Default::default()
};
GameConfig {
tonemapping_enabled: true,
dev,
..Default::default()
}
} }
async fn run() { async fn run() {