This example is running in WebGL2 and should work in most browsers. You can check the WebGPU examples here.
many_sprites.rs:
//! Renders a lot of sprites to allow performance testing.
//! See <https://github.com/bevyengine/bevy/pull/1492>
//!
//! This example sets up many sprites in different sizes, rotations, and scales in the world.
//! It also moves the camera over them to see how well frustum culling works.
//!
//! Add the `--colored` arg to run with color tinted sprites. This will cause the sprites to be rendered
//! in multiple batches, reducing performance but useful for testing.
use ;
use Rng;
const CAMERA_SPEED: f32 = 1000.0;
const COLORS: = ;
;
// System for rotating and translating the camera
;
// System for printing the number of sprites on every tick of the timer