feat(perf): Implement Input Lag estimation logic

This commit is contained in:
2026-02-23 14:43:07 -05:00
parent e19e9130e4
commit cdd06d4339
3 changed files with 29 additions and 1 deletions

5
gui.py
View File

@@ -1698,6 +1698,11 @@ class App:
)
def _build_ui(self):
# Performance tracking handlers
with dpg.handler_registry():
dpg.add_mouse_click_handler(callback=lambda: self.perf_monitor.record_input_event())
dpg.add_key_press_handler(callback=lambda: self.perf_monitor.record_input_event())
with dpg.viewport_menu_bar():
with dpg.menu(label="Windows"):
for label, tag in self.window_info.items():