stress test examples: add missing warns (#8475)

# Objective

- Some stress test examples don't have the warning about performances

## Solution

- Add it
This commit is contained in:
François 2023-04-24 16:35:03 +02:00 committed by GitHub
parent e2531b2273
commit 7f78e063af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -69,6 +69,8 @@ fn button_system(
}
fn setup(mut commands: Commands) {
warn!(include_str!("warning_string.txt"));
let count = ROW_COLUMN_COUNT;
let count_f = count as f32;
let as_rainbow = |i: usize| Color::hsl((i as f32 / count_f) * 360.0, 0.9, 0.8);

View file

@ -25,6 +25,8 @@ fn main() {
}
fn setup(mut commands: Commands) {
warn!(include_str!("warning_string.txt"));
commands.spawn(Camera2dBundle::default());
let mut text = Text {
sections: vec![TextSection {

View file

@ -26,6 +26,8 @@ fn main() {
}
fn spawn(mut commands: Commands, asset_server: Res<AssetServer>) {
warn!(include_str!("warning_string.txt"));
commands.spawn(Camera2dBundle::default());
let sections = (1..=50)
.flat_map(|i| {