bevy
bevy copied to clipboard
changed diagnostics from seconds to milliseconds
Co-authored-by: Alice Cecile [email protected]
Objective
Change frametimediagnostic from seconds to milliseconds because this will always be less than one seconds and is the common unit for game engines.
Solution
- multiplied the existing value by 1000
Changelog
Frametimes are now reported in milliseconds
As someone not accustomed to other game engine, seconds is the natural unit for a duration, not milliseconds. Very quick google search seems to show in seconds for unreal, not sure about unity
Unreal and Unity both use milliseconds for frametimes. https://docs.unrealengine.com/4.27/en-US/TestingAndOptimization/PerformanceAndProfiling/Overview/ https://docs.unity3d.com/Manual/ProfilerCPU.html
You're right, for displaying, milliseconds makes a lot more sense.
I was looking for the unit used when accessing timings from code, for that I found seconds
bors r+
bors r-
Canceled.
bors r+
Pull request successfully merged into main.
Build succeeded: