Auto-Vk-Toolkit
Auto-Vk-Toolkit copied to clipboard
There seems to be some lag introduced into GLFW which somehow depends on mouse input
On a PC with AMD x370, Ryzen 3900X, and RTX 2080, lags can be observed constantly when moving the mouse. It appears that there are no lags when there is just keyboard input.
On a Microsoft Surface (Core i5, Intel HD 620), lags can be observed when a bluetooth mouse is being connected during runtime. After it has connected, the lags seem to be gone.
It could be worthwhile trying to not use GLFW callbacks but query mouse-related data once per frame. I.e. not use the callbacks to:
- [ ]
glfw_cursor_pos_callback
- [ ]
glfw_mouse_button_callback
- [ ]
glfw_scroll_callback
Maybe a related problem: https://github.com/glfw/glfw/issues/1433