emasab / shelltile

A tiling window extension for GNOME Shell
https://extensions.gnome.org/extension/657/shelltile/
GNU General Public License v2.0
648 stars 42 forks source link

[Performance Tweak] Reducing value of interval in tiling.js #97

Closed elliotwutingfeng closed 4 years ago

elliotwutingfeng commented 4 years ago

In vanilla GNOME, mouse edge tiling latency is low enough for me to be able to "flick" windows to the edges to be tiled. On shelltile however, sometimes if I do not hover the cursor at the edge long enough, edge tiling will fail to occur.

I managed to fix it by adjusting the value of "var interval" in tiling.js from 200 to 10. Not sure about the impact on CPU usage, perhaps you might want to give this a try?

Edit: Adjusting "Size of active edge tiling zone" to "25" in the preferences, together with the above tweak makes it work almost flawlessly.

Edit2: I am a fool. Looks like setting a value of "25" for "Size of active edge tiling zone" is all I needed.