Stress test examples
The engine's stress test examples: what each one shows, whether it runs in a browser and the command that runs it.
Programs that push one part of the engine hard, for measuring performance. Run them with --release. There are 19 examples on this page. For the concepts behind them, see Performance.
Run any of them from the engine core's workspace (the folder of the engine source that holds the neo crate's Cargo.toml); see Run an example.
Examples#
| Example | What it shows | Web | Run |
|---|---|---|---|
| Many Animated Materials | Benchmark to test rendering many animated materials | Yes | cargo run --example many_materials |
| Many Animated Sprites | Displays many animated sprites in a grid arrangement with slight offsets to their animation timers. Used for performance testing. | Yes | cargo run --example many_animated_sprites |
| Many Buttons | Test rendering of many UI elements | Yes | cargo run --example many_buttons |
| Many Cameras & Lights | Test rendering of many cameras and lights | Yes | cargo run --example many_cameras_lights |
| Many Components (and Entities and Systems) | Test large ECS systems | No | cargo run --example many_components |
| Many Cubes | Simple benchmark to test per-entity draw overhead. Run with the sphere argument to test frustum culling | Yes | cargo run --example many_cubes |
| Many Foxes | Loads an animated fox model and spawns lots of them. Good for testing skinned mesh performance. Takes an unsigned integer argument for the number of foxes to spawn. Defaults to 1000 | Yes | cargo run --example many_foxes |
| Many Gizmos | Test rendering of many gizmos | Yes | cargo run --example many_gizmos |
| Many Glyphs | Simple benchmark to test text rendering. | Yes | cargo run --example many_glyphs |
| Many Gradients | Stress test for gradient rendering performance | Yes | cargo run --example many_gradients |
| Many Lights | Simple benchmark to test rendering many point lights. Run with WGPU_SETTINGS_PRIO=webgl2 to restrict to uniform buffers and max 256 lights | Yes | cargo run --example many_lights |
| Many Morph Targets | Simple benchmark to test rendering many meshes with animated morph targets. | Yes | cargo run --example many_morph_targets |
| Many Sprites | Displays many sprites in a grid arrangement! Used for performance testing. Use --colored to enable color tinted sprites. | Yes | cargo run --example many_sprites |
| Many Text | Displays many UI Text nodes. Used for performance testing. | Yes | cargo run --example many_text |
| Many Text2d | Displays many Text2d! Used for performance testing. | Yes | cargo run --example many_text2d |
| Neomark | A heavy sprite rendering workload to benchmark your system with NEO | Yes | cargo run --example neomark |
| Neomark 3D | A heavy 3D cube rendering workload to benchmark your system with NEO | Yes | cargo run --example neomark_3d |
| Text Pipeline | Text Pipeline benchmark | No | cargo run --example text_pipeline |
| Transform Hierarchy | Various test cases for hierarchy and transform propagation performance | No | cargo run --example transform_hierarchy |