FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
860 stars 19 forks source link

Screen tearing when resizing windows #93

Open ViaxCo opened 2 months ago

ViaxCo commented 2 months ago

First of all, great work on this project, it has been quite fun using it.

I seem to be experiencing some sort of screen tearing when resizing some windows, either using yabai with keyboard shortcuts or simply just resizing with the mouse. When moving windows around, the borders are being tracked just fine, but it seems to lag behind when some windows are resized.

https://github.com/FelixKratz/JankyBorders/assets/43748536/a9aa372e-55c5-4bb6-bab8-c1c94554db4b

FelixKratz commented 1 month ago

Possibly improved by this: https://github.com/FelixKratz/JankyBorders/commit/2d36429ca863abc07cb77401feeaed4ea45ce7dc Could you verify?

ViaxCo commented 1 month ago

https://github.com/FelixKratz/JankyBorders/assets/43748536/f37231f6-c095-49b8-a45a-a0df43df5d04

Thank you so much! It feels so smooth!

dfols commented 1 month ago

When resizing windows I don't have smooth rendering. Also, repeated window resizing (like @ViaxCo did in their latest video), really starts to lag behind.

I have the latest commit (https://github.com/FelixKratz/JankyBorders/commit/2d36429ca863abc07cb77401feeaed4ea45ce7dc) and it still operates like this.

https://github.com/FelixKratz/JankyBorders/assets/6138349/e1a3884c-0384-42ec-83a2-29e6a393bb14