-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
InputText display latency when trickling events #7889
Comments
I have pushed a fix : 092c88d (sorry forgot to amend Changelog, will be done in a subsequent commit). It seems unfortunately I little bit difficult to do better without e.g. making backend provide extra information to allow us to associate key event and char event (e.g. some low-level timestamp?). I hope this workaround can get us running for a good amount of time. If esoteric keyboard layouts requires us to reevaluate how we built Let me know if that works for you! |
Amended TestSuite to take account for that: |
I'm no longer seeing the display latency in my project, thanks! |
Honestly I am surprised this hasn't been reported earlier, and even more so that I didn't notice it myself. |
Version/Branch of Dear ImGui:
Version 1.91.1 WIP, Branch: master
Back-ends:
imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Compiler, OS:
Windows 10 MSVC 2022
Full config/build information:
No response
Details:
Created from the discussion in #7886
io.ConfigInputTrickleEventQueue adds a frame delay in processing characters. This effect is cumulative, simultaneous keystrokes that would have happened in one frame are now spread over many.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: