bevy/crates/bevy_diagnostic
NonbinaryCoder f95287ca9b
Diagnostic reset sum ema (#19337)
# Objective

Fix incorrect average returned by `Diagnostic` after `clear_history` is
called.

## Solution

Reset sum and ema values in `Diagnostic::clear_history`.

## Testing

I have added a cargo test for `Diagnostic::clear_history` that checks
average and smoothed average. This test passes, and should not be
platform dependent.
2025-05-22 19:04:24 +00:00
..
src Diagnostic reset sum ema (#19337) 2025-05-22 19:04:24 +00:00
Cargo.toml Update sysinfo version to 0.35.0 (#19028) 2025-05-05 05:49:23 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
README.md

Bevy Diagnostic

License Crates.io Downloads Docs Discord