You are not logged in.

#1 2016-10-03 06:16:43

leira
Member
Registered: 2016-10-03
Posts: 6

[Solved]Mouse cursor drawing frame rate is not high enough

I finished my Arch installation, my PC is an i5 with 16GB ram, using Qtile as WM, system runs really fast. Just one issue, mouse cursor drawing is not smooth, it feels like the frame rate for mouse cursor is not high enough, compare to the mac I'm using by the side.

I thought it might be polling rate issue, I checked the polling interval, it shows 1ms, and evhz reports polling rate as average 880Hz, it looks really high, it shouldn't be the reason.

~> sudo grep -B3 -A6 '1532.*0029' /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=1532 ProdID=0029 Rev= 1.00
S:  Manufacturer=Razer
S:  Product=Razer DeathAdder
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=1ms
~> sudo evhz
...
Razer Razer DeathAdder: Latest  1000Hz, Average   891Hz
Razer Razer DeathAdder: Latest   500Hz, Average   883Hz
Razer Razer DeathAdder: Latest  1000Hz, Average   883Hz
...

Is there any setting controls the mouse cursor draw rate, which I can tweak?

Last edited by leira (2016-10-08 04:09:55)

Offline

#2 2016-10-03 12:11:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,600

Re: [Solved]Mouse cursor drawing frame rate is not high enough

mouse cursor drawing is not smooth, it feels like the frame rate for mouse cursor is not high enough

You should probably elaborate on this, at least I cannot really imagine your issue.
Does the cursor skip pixels?
Or does it seem to move too slow (compared to the input)?
Does the mouse provide a HW switch to toggle the resolution?
What's the output of

xset -q | grep acceleration

Offline

#3 2016-10-03 17:35:15

leira
Member
Registered: 2016-10-03
Posts: 6

Re: [Solved]Mouse cursor drawing frame rate is not high enough

I'm not sure what the terminology should be used here to describe it. Hmm, let me put it this way: when I move mouse cursor from point A to point B of certain distance in certain speed, on Mac, I can see 10 mouse cursors were drawn in between point A and point B in the movement, while on Arch, I can see only 4 mouse cursors were drawn, this make the feeling of mouse movement not so smooth on Arch.

Offline

#4 2016-10-03 18:00:45

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: [Solved]Mouse cursor drawing frame rate is not high enough

Just shooting in the dark... how's the monitor refresh rate compared to the mac one?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#5 2016-10-03 20:38:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,600

Re: [Solved]Mouse cursor drawing frame rate is not high enough

acceleration?
What's "xset -q | grep acceleration" and how do you like "xset m 1 0"?

Offline

#6 2016-10-04 06:38:01

leira
Member
Registered: 2016-10-03
Posts: 6

Re: [Solved]Mouse cursor drawing frame rate is not high enough

kokoko3k wrote:

Just shooting in the dark... how's the monitor refresh rate compared to the mac one?

On linux, refresh rate is 30Hz over HDMI:

 ~> xrandr
HDMI1 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 620mm x 340mm
   3840x2160     30.00*   25.00    24.00    29.97    23.98    29.98 

On Mac I'm not sure, I suppose it is 60Hz.

Offline

#7 2016-10-04 06:42:30

leira
Member
Registered: 2016-10-03
Posts: 6

Re: [Solved]Mouse cursor drawing frame rate is not high enough

seth wrote:

acceleration?
What's "xset -q | grep acceleration" and how do you like "xset m 1 0"?

Change mouse acceleration doesn't help.

Offline

#8 2016-10-04 09:50:15

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: [Solved]Mouse cursor drawing frame rate is not high enough

leira wrote:
kokoko3k wrote:

Just shooting in the dark... how's the monitor refresh rate compared to the mac one?

On linux, refresh rate is 30Hz over HDMI:

 ~> xrandr
HDMI1 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 620mm x 340mm
   3840x2160     30.00*   25.00    24.00    29.97    23.98    29.98 

On Mac I'm not sure, I suppose it is 60Hz.

...so you wan't see more than 30fps.
The general jerkyness is expected unless you use some sort of motion interpolation available on the TV/monitor side.
-EDIT-
...or lower the resolution to allow more Hz.
I'm not that expert, but from a little calculation, sustaining 60fps at that resolution means a throughput of about 1.5GB(ytes) per second with 24bit color depth:
3840*2160*24/8/1000/1000/1000*60=1.49

Last edited by kokoko3k (2016-10-04 09:55:35)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#9 2016-10-04 11:56:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,600

Re: [Solved]Mouse cursor drawing frame rate is not high enough

leira wrote:

On linux, refresh rate is 30Hz over HDMI:

 ~> xrandr
HDMI1 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 620mm x 340mm
   3840x2160     30.00*   25.00    24.00    29.97    23.98    29.98 

You need a full HDMI 2.0x chain (output, cable and monitor input) - in doubt it's the cable. It's always the cable ;-)
Notice that actually the HDMI version doesn't tell you much, vendors are required to list all caps of their device, so you'll have to ensure the guaranteed framerate/resolution this way. It's a total mess :-(

Offline

#10 2016-10-06 05:51:27

leira
Member
Registered: 2016-10-03
Posts: 6

Re: [Solved]Mouse cursor drawing frame rate is not high enough

I tried switching to 1920x1080@60Hz, it felt much better, mouse cursor drawing much smoother.

My monitor supports HDMI 2.0, I suppose my cable too, turned out my motherboard's HDMI output is only HDMI 1.4, so 30 Hz only for 4K. I need to consider to buy a graphic card to solve this.

Thanks for all the helps.

Offline

#11 2016-10-06 10:59:31

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: [Solved]Mouse cursor drawing frame rate is not high enough

You're welcome, but please, prepend [SOLVED] to the thread title.


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB