The CPU_USAGE diagnostic frequently reports NaN on Mac OS #12628
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
C-Bug
An unexpected or incorrect behavior
D-Trivial
Nice and easy! A great choice to get started with Bevy
O-MacOS
Specific to the MacOS (Apple) desktop operating system
Bevy version
Bevy 0.13
Relevant system information
What you did
Read the value of the
SystemInformationDiagnosticsPlugin::CPU_USAGE
diagnostic.What went wrong
If I read the latest
value()
, it occasionally returnsNaN
. There are often sane values on most frame updates, but they are interspersed with lots of frequentNaN
s.If I read the
smoothed()
value, it showsNaN
all the time. (due to presence ofNaN
s amongst measured values)Additional information
This issue is Mac OS specific. On Linux and Windows, there are no
NaN
s and the values are always sane.The text was updated successfully, but these errors were encountered: