Skip to content

Commit

Permalink
Many Sprites Example Fix (bevyengine#1897)
Browse files Browse the repository at this point in the history
This example is supposed to use frustum culling, but doesn't. :P

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
  • Loading branch information
2 people authored and James Higgins committed Apr 18, 2021
1 parent 7845229 commit ec794a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/2d/many_sprites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use bevy::{
diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
math::Quat,
prelude::*,
sprite::SpriteSettings,
};

use rand::Rng;
Expand All @@ -17,9 +18,9 @@ fn main() {
App::build()
.add_plugin(LogDiagnosticsPlugin::default())
.add_plugin(FrameTimeDiagnosticsPlugin::default())
.insert_resource(bevy::log::LogSettings {
level: bevy::log::Level::DEBUG,
..Default::default()
.insert_resource(SpriteSettings {
// NOTE: this is an experimental feature that doesn't work in all cases
frustum_culling_enabled: true,
})
.add_plugins(DefaultPlugins)
.add_startup_system(setup.system())
Expand Down

0 comments on commit ec794a4

Please sign in to comment.