bevy/crates/bevy_diagnostic
NonbinaryCoder 8ff0c6481a 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-30 22:59:10 +02:00
..
src Diagnostic reset sum ema (#19337) 2025-05-30 22:59:10 +02:00
Cargo.toml Release 0.16.0 2025-04-21 23:14:00 +02: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