mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
e2531b2273
commit
7f78e063af
3 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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| {
|
||||
|
|
Loading…
Reference in a new issue