-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about ImGuiIO::DeltaTime ? #5043
Labels
Comments
tomazos
changed the title
Questions about ImGuiIO:DeltaTime ?
Questions about ImGuiIO::DeltaTime ?
Feb 21, 2022
That “fill once” comment is incorrect and will be changed now. All backends are submitting real wall clock time every time, its ok if it changes.
DeltaTime=0.0 is accepted on the first frame to faciliate this. On subsequent frames it generally leads to an assert as it is considered a user mistake.
|
Sure, thanks. |
ocornut
added a commit
that referenced
this issue
Feb 21, 2022
edvn0
pushed a commit
to edvn0/imgui
that referenced
this issue
Feb 24, 2022
…4921, ocornut#4858) + Snuck in unrelated comments and removed the "fill once" comment (ocornut#5043)
sergeyn
pushed a commit
to sergeyn/imgui
that referenced
this issue
Mar 19, 2022
…4921, ocornut#4858) + Snuck in unrelated comments and removed the "fill once" comment (ocornut#5043)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couple of quick imgui questions if you have time...
The first code comment on
ImGuiIO
s Configuration section saysfill once
. Is it not ok to modify the configuration between each frame? (example_null
, at least, seems to setDisplaySize
andDeltaTime
prior to eachNewFrame
/Render
. ?)The code comment on
ImGuiIO::DeltaTime
states:Our engine has a mailbox mode where frames are continuously rendered and the most recent render is presented at vsync-time. In this mode, should I set
DeltaTime
to the time elapsed since last render or since last present? (ie What isDeltaTime
used for?)What should
DeltaTime
be set to for the first frame, since there is no last frame? Is zero okay? or is that going to break things?Thanks
The text was updated successfully, but these errors were encountered: