I may be doing something wrong but it seems like this library doesn't support Bevy 0.17 yet. I get a number of compile errors such as
note: there are multiple different versions of crate `bevy_app` in the dependency graph
and
the trait `bevy::bevy_app::plugin::sealed::Plugins<_>` is not implemented for `(iyes_perf_ui::PerfUiPlugin, FrameTimeDiagnosticsPlugin)`
For reference, here is the actual usage which worked fine before in bevy 0.15. I have a very simple wrapper plugin which configures iyes_perf_ui for my application:
use bevy::prelude::{default, App, Commands, Plugin, Startup};
use bevy::diagnostic::FrameTimeDiagnosticsPlugin;
use iyes_perf_ui::prelude::*;
pub struct FpsCounterPlugin;
impl Plugin for FpsCounterPlugin {
fn build(&self, app: &mut App) {
app.add_plugins((PerfUiPlugin, FrameTimeDiagnosticsPlugin::default()))
.add_systems(Startup, setup_fps_counter);
}
}
fn setup_fps_counter(mut commands: Commands) {
commands.spawn((
PerfUiRoot {
display_labels: false,
layout_horizontal: true,
..default()
},
PerfUiEntryFPS::default(),
));
}
I may be doing something wrong but it seems like this library doesn't support Bevy 0.17 yet. I get a number of compile errors such as
and
For reference, here is the actual usage which worked fine before in bevy 0.15. I have a very simple wrapper plugin which configures
iyes_perf_uifor my application: