Skip to content

Incompatible with bevy 0.17 #36

Description

@mpearson

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(),
    ));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions