feat(perf): Implement Input Lag estimation logic
This commit is contained in:
5
gui.py
5
gui.py
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user