remarkable_mouse icon indicating copy to clipboard operation
remarkable_mouse copied to clipboard

mouse input is stuttering on Windows

Open TermoZour opened this issue 4 years ago • 10 comments

The lib is working perfectly fine on Linux (to be exact, Pop!OS 20.10) On Windows, the mouse stutters (like it doesn't have enough resolution). You can see it jump from Point A to Point B when swiping fast. video here

The smooth one is moving the mouse directly, the laggy one is using the reMarkable.

TermoZour avatar Oct 28 '20 22:10 TermoZour

Yes I've seen this. I haven't verified it, but I think its a problem in pynput.

On Oct 28, 2020 5:21 PM, "Stefan Pruneanu" [email protected] wrote:

The lib is working perfectly fine on Linux (to be exact, Pop!OS 20.10) On Windows, the mouse stutters (like it doesn't have enough resolution). You can see it jump from Point A to Point B when swiping fast.[ https://drive.google.com/file/d/1So6IppN1Z-IUg0NSiAKADrGFA0jkRHRZ/view? usp=sharing](video here)

The smooth one is moving the mouse directly, the laggy one is using the reMarkable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Evidlo/remarkable_mouse/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJT7YJDID5S2OXCBLNQRYDSNCKNHANCNFSM4TC6ABFA .

Evidlo avatar Oct 29 '20 00:10 Evidlo

Is there anything I can try on my end? I've seen on other issues that you don't have access to a Windows machine.

On Thu, Oct 29, 2020, 2:29 AM Evan Widloski [email protected] wrote:

Yes I've seen this. I haven't verified it, but I think its a problem in pynput.

On Oct 28, 2020 5:21 PM, "Stefan Pruneanu" [email protected] wrote:

The lib is working perfectly fine on Linux (to be exact, Pop!OS 20.10) On Windows, the mouse stutters (like it doesn't have enough resolution). You can see it jump from Point A to Point B when swiping fast.[ https://drive.google.com/file/d/1So6IppN1Z-IUg0NSiAKADrGFA0jkRHRZ/view? usp=sharing](video here)

The smooth one is moving the mouse directly, the laggy one is using the reMarkable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Evidlo/remarkable_mouse/issues/37, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABJT7YJDID5S2OXCBLNQRYDSNCKNHANCNFSM4TC6ABFA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Evidlo/remarkable_mouse/issues/37#issuecomment-718284687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2DRLQ2PE7TAAXW3J24N4DSNCZO5ANCNFSM4TC6ABFA .

TermoZour avatar Oct 29 '20 05:10 TermoZour

You could try this snippet and see how it performs. This will move your mouse around in a circle.

import math
from pynput.mouse import Controller
import time

start = time.time()

mouse = Controller()

mouse.move(100, 100)

N = 100
for n in range(2 * N):
    rad = 2 * math.pi * n / N

    mouse.position = (
        200 * math.cos(rad) + 500,
        200 * math.sin(rad) + 500
    )

    time.sleep(.01)


print('total:', time.time() - start)

Evidlo avatar Oct 29 '20 06:10 Evidlo

It works smoothly. video here

TermoZour avatar Oct 29 '20 14:10 TermoZour

I'm using remarkable_mouse on Windows 10. The cursor seems to move OK but when I try to write or draw something (in Windows Journal or Paint 3D) nothing appears on screen until I lift the pen from the ReMarkable, whereupon a straight line appears on my screen joining the starting point and the finishing point.

petergroves81 avatar Nov 22 '20 10:11 petergroves81

Here is a stripped down version of the code which should help figure out what's causing the latency.

Evidlo avatar Jan 07 '21 18:01 Evidlo

I've just tested it and I still get the same weird latency.

TermoZour avatar Jan 08 '21 21:01 TermoZour

Right, the purpose of that code is just to make it easier for others to poke around and figure out the cause.

Evidlo avatar Jan 08 '21 21:01 Evidlo

I've narrowed the problem down a bit on Windows: https://github.com/paramiko/paramiko/issues/1801

Evidlo avatar Jan 15 '21 02:01 Evidlo

@petergroves81, I had the same issue on Paint3D but it works fine on Gimp. (I used the rm2 branch with a Remarkable2).

DDorch avatar Jan 24 '21 16:01 DDorch