show fps
This commit is contained in:
parent
eddeda6ba9
commit
d3a54938af
1 changed files with 12 additions and 3 deletions
15
src/main.rs
15
src/main.rs
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue