linux/x11: prioritize input in the event loop (#8253)
With this change, interaction with Zed is actually real-time and usable :rocket: :tada: The gist of it is - trying to process all of the input events before rendering anything. Release Notes: - N/A **Note**: this can be further improved in a follow-up. Currently, once the input and runnables are processed, we'd try to draw + render a frame. Presentation starts with acquiring a new frame. We currently have FIFO presentation method, so acquiring a frame is blocking on that swapchain image to become available. As the result, presentation takes around 16 ms, most of which is just busy wait. Ideally, we'd be able to process more input in this time frame, instead. **Note2**: it's a bit laggy in Debug for me, but that's just because of the extra-long `draw` times, which is unrelated to rendering (or platform support, for the matter). I'm curious how come on MacOS the `draw()` times in Debug are more modest.
D
Dzmitry Malyshau committed
885ae2d863c633c20807d6086c228f76035e3cf7
Parent: cab8b5a
Committed by GitHub <noreply@github.com>
on 2/24/2024, 12:22:54 AM