Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time.

This commit is contained in:
omar
2018-07-22 18:46:41 +02:00
parent ec76009bc4
commit e07f5d4c78
5 changed files with 12 additions and 9 deletions

View File

@ -616,7 +616,7 @@ struct ImGuiContext
float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height.
ImDrawListSharedData DrawListSharedData;
float Time;
double Time;
int FrameCount;
int FrameCountEnded;
int FrameCountRendered;