mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
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:
parent
59b4921827
commit
01ce75d7bf
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue