Skip to content

Commit

Permalink
Add internal_ambiguities dev example
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Mar 30, 2022
1 parent 69f38e5 commit 870f3e8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ path = "examples/shader/compute_shader_game_of_life.rs"
name = "bevymark"
path = "examples/tools/bevymark.rs"

[[example]]
name = "internal_ambiguities"
path = "examples/tools/internal_ambiguities.rs"

[[example]]
name = "scene_viewer"
path = "examples/tools/scene_viewer.rs"
Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ git checkout v0.4.0
- [WASM](#wasm)
- [Setup](#setup-2)
- [Build & Run](#build--run-2)
- [Loading Assets](#loading-assets)
- [Stress Tests](#stress-tests)

# The Bare Minimum
Expand Down Expand Up @@ -258,6 +259,7 @@ Example | File | Description
Example | File | Description
--- | --- | ---
`bevymark` | [`tools/bevymark.rs`](./tools/bevymark.rs) | A heavy sprite rendering workload to benchmark your system with Bevy
`internal_ambiguities` | [`tools/internal_ambiguities.rs`](./tools/internal_ambiguities.rs) | Detect and report any Bevy-internal system order ambiguities
`scene_viewer` | [`tools/scene_viewer.rs`](./tools/scene_viewer.rs) | A simple way to view glTF models with Bevy. Just run `cargo run --release --example scene_viewer -- /path/to/model.gltf#Scene0`, replacing the path as appropriate. With no arguments it will load the FieldHelmet glTF model from the repository assets subdirectory.

## Transforms
Expand Down
11 changes: 11 additions & 0 deletions examples/tools/internal_ambiguities.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//! Reports any Bevy-internal system-order ambiguities
//! This is primarily useful for engine development
use bevy::prelude::*;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.insert_resource(ReportExecutionOrderAmbiguities::ReportInternal)
.run()
}

0 comments on commit 870f3e8

Please sign in to comment.