yshui / picom

A lightweight compositor for X11
Other
3.93k stars 575 forks source link

[Request] glFinish timing #1175

Closed Enokilis closed 4 months ago

Enokilis commented 5 months ago

With the GLX backend, the option to swap out glFlush with glFinish takes place before a glxSwapBuffers. There is an additional glFlush succeeding the buffer swap that cannot be toggled. If an additional parameter could decide where in the chain this GL call swap (pun not intended) occurs, latency could be reduced when the compositor is V-synced.

Observations: With default glFinish, a window being dragged lags two frames behind the cursor. With glFinish after a buffer swap, a window being dragged lags one frame behind the cursor.

absolutelynothelix commented 4 months ago

glFinish and glFlush are only used in legacy backends. default backends use neither.

absolutelynothelix commented 4 months ago

given what i’ve written above, could you please clarify what your request is? otherwise this issue will be closed as invalid and stale.

Enokilis commented 4 months ago

If those backends are not to be maintained, then consider this closed.