Skip to content

Commit

Permalink
[FIX] (cu_rp_balancebot) perf-ui feature
Browse files Browse the repository at this point in the history
  • Loading branch information
makeecat committed Jan 10, 2025
1 parent f62efb8 commit d4c26e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cu_rp_balancebot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bevy = { version = "0.15.1", default-features = false, features = ["x11", "wayla
avian3d = { version = "0.2.0", default-features = false, features = ["bevy_scene", "collider-from-mesh", "debug-plugin", "parallel", "f32", "3d", "parry-f32"], optional = true }
parry3d = { version = "0.17.4", optional = true }
cached-path = { version = "0.6.1", optional = true }
iyes_perf_ui = { version = "0.3.0", optional = true }
iyes_perf_ui = { git = "https://github.com/makeecat/iyes_perf_ui", version = "0.4.0", optional = true }

[features]
default = ["logreader", "sim"]
Expand Down
4 changes: 2 additions & 2 deletions examples/cu_rp_balancebot/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use cached_path::{Cache, ProgressBar};
use iyes_perf_ui::PerfUiPlugin;

#[cfg(feature = "perf-ui")]
use iyes_perf_ui::entries::PerfUiCompleteBundle;
use iyes_perf_ui::prelude::PerfUiAllEntries;

use std::path::Path;
use std::{fs, io};
Expand Down Expand Up @@ -293,7 +293,7 @@ fn setup_ui(mut commands: Commands) {
));
});
#[cfg(feature = "perf-ui")]
commands.spawn(PerfUiCompleteBundle::default());
commands.spawn(PerfUiAllEntries::default());
}

// This needs to match an object / parent object name in the GLTF file (in blender this is the object name).
Expand Down

0 comments on commit d4c26e6

Please sign in to comment.