Skip to content

feat: add option to disable trickle down event queue#2634

Open
sfrank10 wants to merge 1 commit intohoffstadt:masterfrom
sfrank10:sfrank/expose-trickle-event-queue
Open

feat: add option to disable trickle down event queue#2634
sfrank10 wants to merge 1 commit intohoffstadt:masterfrom
sfrank10:sfrank/expose-trickle-event-queue

Conversation

@sfrank10
Copy link
Copy Markdown


name: Pull Request
about: Create a pull request to help us improve
title: add option to disable trickle down event queue
assignees: @hoffstadt @v-ein


Description:
This PR exposes Dear ImGui's io.ConfigInputTrickleEventQueue to the dearpygui python interface as a configure_app() option. This allows users to disable input event trickling.

Dear ImGui 1.87+ introduced event trickling (default: enabled), (release notes) which distributes rapid input events across multiple frames to prevent missed inputs at low framerates. However, this causes visible input lag with high-frequency input devices like barcode scanners — characters appear one-per-frame instead of all at once.

Note: Claude was used to find the source of the barcode input slowness and to implement the solution. The results were tested manually.

Closes #2633

Concerning Areas:

  • The default is unchanged (True), so existing behavior is unaffected.
  • At very low framerates (<30fps) with trickling disabled, rapid key-down/key-up pairs within a single frame may be collapsed, causing missed inputs. This is the tradeoff ImGui documented when introducing the feature. At typical framerates (60fps+) this is not an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text input lag with rapid keyboard input (barcode scanner) on macOS

1 participant