Skip to content

Commit b4218a4

Browse files
hatenicopapmockersf
authored
Re-introduce comments about frustum culling (#8579)
# Objective Frustum culling for 2D components has been enabled since #7885, Fixes #8490 ## Solution Re-introduced the comments about frustum culling in the many_animated_sprites.rs and many_sprites.rs examples. --------- Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com> Co-authored-by: François <mockersf@gmail.com>
1 parent 6b55667 commit b4218a4

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

examples/stress_tests/many_animated_sprites.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//! Renders a lot of animated sprites to allow performance testing.
22
//!
3-
//! It sets up many animated sprites in different sizes and rotations,
4-
//! and at different scales in the world, and moves the camera over them.
5-
//!
6-
//! Having sprites out of the camera's field of view should also help stress
7-
//! test any future potential 2d frustum culling implementation.
3+
//! This example sets up many animated sprites in different sizes, rotations, and scales in the world.
4+
//! It also moves the camera over them to see how well frustum culling works.
85
96
use std::time::Duration;
107

examples/stress_tests/many_sprites.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
//! Renders a lot of sprites to allow performance testing.
22
//! See <https://github.com/bevyengine/bevy/pull/1492>
33
//!
4-
//! It sets up many animated sprites in different sizes and rotations,
5-
//! and at different scales in the world, and moves the camera over them.
6-
//!
7-
//! Having sprites out of the camera's field of view should also help stress
8-
//! test any future potential 2d frustum culling implementation.
4+
//! This example sets up many sprites in different sizes, rotations, and scales in the world.
5+
//! It also moves the camera over them to see how well frustum culling works.
96
//!
107
//! Add the `--colored` arg to run with color tinted sprites. This will cause the sprites to be rendered
118
//! in multiple batches, reducing performance but useful for testing.

0 commit comments

Comments
 (0)