skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.21k stars 64 forks source link

Draging Window Lags Severely #511

Open Nesaijn opened 2 years ago

Nesaijn commented 2 years ago

In the recording the first windows seems to lag a bit too, especially at the beginning but It actually moved smoothly. But still comparing that to Lagrange when moving still shows how laggy Lagrange is. I can't tell why that is.

When running through the terminal I only get the following:

$ lagrange --version
Lagrange version 1.13.5
$ lagrange 
Lagrange: A Beautiful Gemini Client
[window] renderer: opengl (accelerated)

I am using Manjaro Linux with Gnome 42.1 and X11

Peek 2022-05-27 02-21

skyjake commented 2 years ago

I have noticed laggy window movement and resizing under some X11 window managers. Some work pretty fine, though, like Ubuntu's default window manager. It may also be dependent on the mouse device, because the rate of motion events depends on the hardware.

I think ultimately the problem is related to how the main loop is handled (event waiting, window refresh), and whether that interferes with the reception and processing of window events. That is mostly happening at the level of SDL, though, so the app has limited ability to affect this. So far I've been unable to find a good workaround.