You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs for CFAbsoluteTimeGetCurrent(), "The system time may decrease due to synchronization with external time references or due to an explicit user change of the clock."
(I did not change my clock manually.)
Since CFAbsoluteTimeGetCurrent is not monotonic, imgui_impl_osx.mm should use a different time reference such as mach_absolute_time. Also probably the assertion should be made when DeltaTime is set, not when it is accessed.
The text was updated successfully, but these errors were encountered:
Version: 1.85 WIP
Branch: master
Back-ends: imgui_impl_osx, imgui_impl_metal
Compiler: Xcode 12.5.1
Operating System: MacOS X 11.5.2
After leaving an imgui app running for a couple of days I found it crashed :
Assertion failed: ((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"), function ErrorCheckNewFrameSanityChecks, file /.../Imgui/imgui.cpp, line 7253.
ImGui_ImplOSX_NewFrame has this code that relies on CFAbsoluteTimeGetCurrent:
According to the docs for CFAbsoluteTimeGetCurrent(), "The system time may decrease due to synchronization with external time references or due to an explicit user change of the clock."
(I did not change my clock manually.)
Since CFAbsoluteTimeGetCurrent is not monotonic, imgui_impl_osx.mm should use a different time reference such as mach_absolute_time. Also probably the assertion should be made when DeltaTime is set, not when it is accessed.
The text was updated successfully, but these errors were encountered: