Skip to content

Commit 184a680

Browse files
committed
Add note
1 parent 83ba2c6 commit 184a680

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/states.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ fn print(ready: Res<PipelinesReady>) {
8181

8282
fn transition(ready: Res<PipelinesReady>, mut next_state: ResMut<NextState<GameState>>) {
8383
if ready.get() >= EXPECTED_PIPELINES {
84+
// Note: you may want to wait an additional period of time or number
85+
// of frames after this.
86+
//
87+
// In my experience, Bevy's framerate seems to take a few seconds to
88+
// fully recover after pipelines are compiled when running in Firefox.
8489
next_state.set(GameState::Ready);
8590
}
8691
}

0 commit comments

Comments
 (0)