[Bug 1688] Enhancement/fix to the mouse acceleration code
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Dec 7 08:52:35 PST 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=1688
------- Additional Comments From Jan_B at gmx.ch 2004-12-07 08:52 -------
> [..]there's no reason to jump through hoops and introduce extra struct
> fields to avoid using floats.
That's what I thought first but after some input from Jim Gettys and Keith
Packard, I found out that casting from float to integer is very slow in C, at
least with x86 cpus. Additionally, there are target platforms that don't have a FPU.
For desktop computers, the difference is not noticeable of course, even with
future 10'000 Hz mice but without an FPU, this could make a system crawl. :)
I don't know what others think but I now like the integer version better. I hate
to waste CPU time even if it's not much. Plus the integer version is
theoretically more accurate.
I guess the mouse acceleration code is going to be revised to a more
sophisticated algorithm in the future anyway so I don't care a lot about which
patch gets accepted now as I see it as a needed fix.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list