Diagnostics examples
The engine's diagnostics examples: what each one shows, whether it runs in a browser and the command that runs it.
Frame time and other diagnostics, and logging your own measurements. There are 3 examples on this page. For the concepts behind them, see Diagnostics.
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 |
|---|---|---|---|
| Custom Diagnostic | Shows how to create a custom diagnostic | Yes | cargo run --example custom_diagnostic |
| Enabling/disabling diagnostic | Shows how to disable/re-enable a Diagnostic during runtime | Yes | cargo run --example enabling_disabling_diagnostic |
| Log Diagnostics | Add a plugin that logs diagnostics, like frames per second (FPS), to the console | Yes | cargo run --example log_diagnostics |