AltSnap icon indicating copy to clipboard operation
AltSnap copied to clipboard

AltSnap freezes when attempting to move OBS

Open pigsflew opened this issue 3 years ago • 5 comments
trafficstars

I keep forgetting that AltSnap doesn't like OBS, and so if I reflexively try to move or resize the OBS window using altsnap, it suddenly causes AltSnap to ramp up CPU usage and much of the desktop becomes unusable... I have no idea why?

pigsflew avatar Mar 20 '22 02:03 pigsflew

Some applications can be very slow on resize, this is because the native resizing is a bit different than what AltSnap does. I will investigate OBS when I will have access to a Win10 machine. There are some things that may improve performances in the [Performance] section of the .ini file, you can open the AltSnap.ini file by middle clicking on the tray icon. the first thing I suggest would be to set RezTimer=1, if you have a 60Hz monitor it should not be visually disturbing and it helps a lot in reducing reducing CPU usage. Alternatively you can also play with the ResizeRate value, I recommend a value of 4 (pixels). Finally you can set FullWin=0 so that AltSnap only resizes a hollow rectangle. instead of the full window however you might not appreciate the look and feel of this. EDIT to change the color of the hollow rectangle you can use FrameColor=RR GG BB (hex R G B values) in the [Input] section of the .ini file default is FrameColor=80 00 80 (violet)

RamonUnch avatar Mar 20 '22 07:03 RamonUnch

PS: If adjusting the above parameters is not enough, I suggest you add OBS to the blacklist so that you do not accidentally move/resize it before I fix the bug (hopefully). Check the wiki on how to add programs/windows to the blacklists: https://github.com/RamonUnch/AltSnap/wiki#blacklists

RamonUnch avatar Mar 27 '22 21:03 RamonUnch

Some applications can be very slow on resize, this is because the native resizing is a bit different than what AltSnap does.

Is this the same issue that causes https://github.com/stefansundin/altdrag/issues/162 ?

LoganDark avatar Aug 17 '22 06:08 LoganDark

Oh wow this fork actually causes the cursor to not get glitched / slowed down, OK definitely using this :O

LoganDark avatar Aug 17 '22 07:08 LoganDark

I do resize the window in a separated thread and thus avoids locking the cursor in place when the window is slow to resize.

RamonUnch avatar Aug 17 '22 07:08 RamonUnch