Menu

#5 Win11 lag

2.0
open
Kered13
None
2025-03-14
2021-10-27
Vesane
No

On Windows 11, the script does not behave as expected; a small amount of scrolling causes the whole window (and cursor itself) to freeze/stutter, slowly scrolling a few lines over several seconds rendering the cursor unusable. Changing the speed option in preferences only changes how many lines scroll during the stuttering period.
I feel like this must be something to do with how Win11 has altered the resource allocation to graphics processes or something given how it affects the cursor too, and things affecting cursor movement only started happening after a graphics update to Win10 in 2020.

Discussion

1 2 > >> (Page 1 of 2)
  • Vesane

    Vesane - 2021-10-27

    This is on a Microsoft Surface Book 2

    Also I noticed that if I scroll a very, very, very small amount, very slowly, then the effect doesn't kick in. Talking like half a line or so

     
  • Kered13

    Kered13 - 2021-10-28

    Thank you for reporting this. Unfortunately I do not have Windows 11 so I cannot take any action on this at the moment. Perhaps some other user with Windows 11 could attempt to investigate.

    If any other Windows 11 users can confirm this issue, that would also be very helpful.

    I can say that this sounds like the behavior when the debugger is paused in the middle of the mouse hook function (WinScroller.cpp, line 13), so perhaps it is related to that. The purpose of this hook is to block mouse move events, therefore locking the mouse in place, while chiral scrolling.

     

    Last edit: Kered13 2021-10-28
  • Kered13

    Kered13 - 2021-12-17

    I just noticed behavior very similar to what you described today on my laptop, but when I looked into it more it turned out to just be that I somehow had two instances running at once. I'm not sure how that happened because I only had one icon in the taskbar, but maybe something to look into.

     
  • C Schmitz

    C Schmitz - 2022-05-13

    Hi.

    I can confirm this issue. I tried the program on a quite freshly installed Windows 11 (Windows version 10.0.22000.613). Have to run it as admin, then it begins to scroll, but lags out and renders the cursor unusable, just as described before. It looks like it either overflows some buffer, or collides with something native in Windows 11.

    I tested this on an MSI gaming laptop.

    Would be fantastic if this could some day be fixed; I own a Lenovo with a Synaptics touch pad, and really miss the chiral scrolling when using that MSI :)

    edit: appears to work better, yet still very choppy, when I disable 2-finger scrolling and "pinch to zoom" in the Windows 11 settings; sadly, still way to choppy to be usable. With these settings off, it appears the chiral motion ALSO attempts to move the cursor on screen while circling my finger on the touch pad, if that makes any sense. At least the cursor ends up at the edge of the screen when attempting to chiral scroll.

     

    Last edit: C Schmitz 2022-05-13
  • losinj

    losinj - 2022-09-29

    Same problem here, after updating from Win'10 to Win'11 (v.21H2, OS Build 22000.978) on my new Lenovo Yoga 7 Slim 14. The initial lack of this feature made me consider returning it, so now that I'm back to square one it would be absolutely brilliant if it could be made to work on Win'11.

     
  • Kered13

    Kered13 - 2022-09-29

    I have a theory as to what may be causing this. No solution unfortunately, but perhaps at least an understanding of the problem. If I sent you a test build, could one of you try running it?

     
    • C Schmitz

      C Schmitz - 2022-09-29
      Post awaiting moderation.
    • losinj

      losinj - 2022-09-29

      Sure, happy to help, if I can.

       
  • C Schmitz

    C Schmitz - 2022-09-29

    Hey,

    If I sent you a test build, could
    one of you try running it?

    That would be awesome!

    Send it my way any time, I can't promise a definitive response time because I bricked the notebook's OS and need to reinstall :D but I should be able to test it in short order.

    Thanks!

     
  • Kered13

    Kered13 - 2022-10-02

    I have attached the test build. A command line option is added to test the behavior with a couple different code changes. The option is --w11DebugBehavior=<option>. The options are normal, which is the normal behavior, nohook, and hookdoesnothing.

    With the second two options, the mouse cursor will not be locked while scrolling. This is not desirable behavior, but I think the problem in W11 may be tied to this. Scrolling will still work but it will be awkward because the mouse will leave the window and stop scrolling, or start scrolling a different window. Regardless, can you try running it with each of these options and tell me what happens? In particular, if it has the same lag.

     
    • Vesane

      Vesane - 2022-10-02

      Thanks for this! So trying it out as it comes (ie with normal setting, presumably) is the same as what we described i.e. it freezes up my computer/cursor while the screen scrolls up at about 4 ticks per second. 
      Nohook, however, behaved as you predicted! Chiral scroll works without freezing things up much at all, but the cursor moves around. Worth noting that in my case, even when the cursor moved over a different window, it was still scrolling in the active window. Also if I chiral too quickly, things lag, but if I go slowly then it works fine, even though cursor moves all around. Some temporary stuttering on direction change, though.
      Hookdoesnothing behaves the same as normal

       

      Last edit: Vesane 2022-10-02
    • Vesane

      Vesane - 2022-10-02

      Thanks for this!

      So trying it out as it comes is the same as what we described i.e. it
      freezes up my computer/cursor while the screen scrolls up at about 4 ticks
      per second.
      Nohook, however, behaved as you predicted! Chiral scroll works without
      freezing things up much at all, but the cursor moves around.
      Hookdoesnothing behaves the same as normal

       
    • losinj

      losinj - 2022-10-02

      My findings echo the previous. Option=nohook seems to be working pretty well, except for the cursor moving around, but I think I could live with that if it became necessary.

      Vertical scroll speed 4 is comfortable for me; haven't tried altering the other settings from defaults.

      Thanks for your work!

       
  • losinj

    losinj - 2022-10-02

    My findings echo the above. Option=nohook seems to be working pretty well, except for the cursor moving around, but I think I could live with that if it became necessary.

    Vertical scroll speed 4 is comfortable for me; haven't tried altering the other settings from defaults.

    Thanks for your work!

     
  • Kered13

    Kered13 - 2022-10-06

    Here is another debug build to try. This one uses the WH_MOUSE hook instead of WH_MOUSE_LL. As a consequence, it requires a separate DLL file. Be sure to extract both the .exe and the .dll into the same directory. The --w11DebugBehavior flag is removed, you just need to test it normally. This build also does not lock the mouse position, I suspect that is not possible using WH_MOUSE. The purpose of this build is to test if the lag is being caused by the WH_MOUSE_LL hook or if all hooks have this issue. So please test this and let me know if it causes lag like the standard build.

     

    Last edit: Kered13 2022-10-06
    • losinj

      losinj - 2022-10-07

      Thank you. I won't have an opportunity to try this out until next week, sorry.

       
    • losinj

      losinj - 2022-10-10

      Where do I find the DLL ? (Only the EXE seems to be downloadable...?)

       

      Last edit: losinj 2022-10-10
  • Kered13

    Kered13 - 2022-10-11

    I attached the wrong file. Here is the correct file.

     
    • losinj

      losinj - 2022-10-13

      For me, this behaves in the same manner as your earlier EXE with the 'nohook' option, i.e. scrolling seems stable but with the cursor moving around.

      One other thing I noticed is that chiral scroll doesn't work on the apps lists in Task Manager. Also when Task Manager is in the foreground, chiral scroll is disabled in any underlying browser window. Not that this particularly bothers me :)

       

      Last edit: losinj 2022-10-13
    • Oki

      Oki - 2022-12-05

      This is the first version that has worked for me in DELL laptops. Great!!!

      All the previous versions were stuck soon after starting chiralling, later versions worked fine while criralling in one direction, but started to fail when switching direction. This is the first version so far that scrolls properly in both directions. Thanks!

      One last note, you should update the latest release version with this one that seems more compatible with W11.

       

      Last edit: Oki 2022-12-05
    • dean edgington

      dean edgington - 2023-01-03

      That really seems to have done the trick in win11 for me. cheers fella.

       
  • chi won

    chi won - 2022-12-19

    thanks so much for this app. its a lifesaver. it would great if someone could find a solution to the mouse unhooking in windows 11.

    also i noticed that when switching from clockwise to anticlockwise sometimes the computer did not recognise that i had changed direction and sometimes it did recognise. its hard to predict

    regards

     
    • Kered13

      Kered13 - 2022-12-20

      also i noticed that when switching from clockwise to anticlockwise sometimes the computer did not recognise that i had changed direction and sometimes it did recognise. its hard to predict

      This is a consequence of the inherent fuzziness of the algorithm. It's hard to tell the difference between tracing a small circle and reversing directions. There are some hidden parameters that you can customize in the settings file, which are documented here. You can try playing around with them to see if you find something that works better for you.

       
  • chi won

    chi won - 2024-05-15

    bump for 2024. since windows 11 has been around for some time has anyone managed to crack it and get it working with the mouse hooked. it would be a lifesaver for me and happy to donate towards it

     
  • Vesane

    Vesane - 2024-09-23
    Post awaiting moderation.
1 2 > >> (Page 1 of 2)

Log in to post a comment.