NEOLearn

Diagnostics examples

The engine's diagnostics examples: what each one shows, whether it runs in a browser and the command that runs it.

Updated October 20, 2026

On this page

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#

ExampleWhat it showsWebRun
Custom DiagnosticShows how to create a custom diagnosticYescargo run --example custom_diagnostic
Enabling/disabling diagnosticShows how to disable/re-enable a Diagnostic during runtimeYescargo run --example enabling_disabling_diagnostic
Log DiagnosticsAdd a plugin that logs diagnostics, like frames per second (FPS), to the consoleYescargo run --example log_diagnostics

See also#