Derive Debug for Framecount (#11573)

# Objective

- I wanted this for an example, and I think it's a fundamentally handy
debugging tool (with already public fields).

## Solution

-  `derive(Debug)` for `FrameCount`
This commit is contained in:
Alice Cecile 2024-01-28 08:25:49 -05:00 committed by GitHub
parent 59b4921827
commit 01ce75d7bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,7 @@ fn tick_global_task_pools(_main_thread_marker: Option<NonSend<NonSendMarker>>) {
/// [`FrameCount`] will wrap to 0 after exceeding [`u32::MAX`]. Within reasonable
/// assumptions, one may exploit wrapping arithmetic to determine the number of frames
/// that have elapsed between two observations see [`u32::wrapping_sub()`].
#[derive(Default, Resource, Clone, Copy)]
#[derive(Debug, Default, Resource, Clone, Copy)]
pub struct FrameCount(pub u32);
/// Adds frame counting functionality to Apps.