Skip to content

Commit

Permalink
Fix non-functional nondeterministic_system_order example (#10719)
Browse files Browse the repository at this point in the history
# Objective

The `nondeterministic_system_order` example doesn't actually detect and
log its deliberate order ambiguities! It should, tho.

## Solution

Update the schedule label, and explain in a comment that you can't turn
it on for the whole `Main` schedule in one go (alas, that would be nice,
but it makes sense that it doesn't work that way).
  • Loading branch information
nfagerlund authored Nov 25, 2023
1 parent c454b26 commit 91b64df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/ecs/nondeterministic_system_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ use bevy::{

fn main() {
App::new()
// We can modify the reporting strategy for system execution order ambiguities on a per-schedule basis
.edit_schedule(Main, |schedule| {
// We can modify the reporting strategy for system execution order ambiguities on a per-schedule basis.
// You must do this for each schedule you want to inspect; child schedules executed within an inspected
// schedule do not inherit this modification.
.edit_schedule(Update, |schedule| {
schedule.set_build_settings(ScheduleBuildSettings {
ambiguity_detection: LogLevel::Warn,
..default()
Expand Down

0 comments on commit 91b64df

Please sign in to comment.