After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 160848 - [GOK] dwell tracking performance poor on sparc w/2 usb mice
[GOK] dwell tracking performance poor on sparc w/2 usb mice
Status: RESOLVED WONTFIX
Product: gok
Classification: Deprecated
Component: performance
unspecified
Other Solaris
: Normal major
: ---
Assigned To: David Bolter
David Bolter
gnome[unmaintained]
Depends on:
Blocks: 118134
 
 
Reported: 2004-12-09 09:38 UTC by Tim Miao
Modified: 2011-10-14 10:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (133.44 KB, image/png)
2005-01-19 01:16 UTC, Tim Miao
  Details
patch to make GOK react to XInput events only at idle (2.86 KB, patch)
2005-09-15 13:56 UTC, bill.haneman
needs-work Details | Review

Description Tim Miao 2004-12-09 09:38:04 UTC
Please describe the problem:
Connfigure the second usb mouse as a switch on a sparc machine, all the setting
is set by default. Launch GOK and move switch cursor, you'll find its motion is
too slow.

Steps to reproduce:
Connfigure the second usb mouse as a switch on a sparc machine on which S10_72
is installed, all the setting is set by default. Launch GOK and move switch
cursor, you'll find its motion is too slow.

Actual results:
GOK moves too slowly.

Expected results:
GOK moves should be more smoothly.

Does this happen every time?
Yes.

Other information:
Comment 1 padraig.obriain 2004-12-09 09:48:24 UTC
I note that you have OS to all. Does this mean that this is also a problem on linux?
Comment 2 Tim Miao 2004-12-09 10:31:12 UTC
No, it's on sparc/solaris10.
Comment 3 padraig.obriain 2004-12-09 10:34:35 UTC
I have seen this when using the second pointer in dwell mode. 

Inn the Gok Preferences Dialog, in the Actions tab set the Action to Dwell in
the topmost ComboBox. The Sensitivity value seems to control the speed of the
mouse motion.
Comment 4 bill.haneman 2004-12-09 13:07:58 UTC
This is OS dependent and seems to depend a lot on the hardware as well.

Comment 5 bill.haneman 2004-12-09 13:08:50 UTC
I made code changes to improve performance in this area on SPARC earlier this
year.  It may not be feasible to do much more.
Comment 6 bill.haneman 2004-12-09 13:13:52 UTC
doing much better here would require implementing pointer averaging and some
sort of timer-based dwell delay.  Would have negative impact on perceived
performance on faster platforms too.
Comment 7 bill.haneman 2005-01-16 20:27:55 UTC
Does this happen only with USB mice?  And is it a regression?  I have not
observed such slowness on sparc...
Comment 8 Tim Miao 2005-01-17 03:11:53 UTC
I have configured two mice on different machines(sparc and x86) successfully. It
covers three OS(s10/sparc, s10/x86 and jds3/linux). Please refer the detailed
info below:
-----------------------------------------------------------------------------
Machine                 OS            MouseConfigure             Performance
-----------------------------------------------------------------------------
SunBlade 100          s10/sparc         2 usb mice                   poor
-----------------------------------------------------------------------------
Dell PC                s10/x86      1 usb mouse(CorePointer)
                                            and                      good
                                      1 ps2 mouse(Switch)
-----------------------------------------------------------------------------
Dell PC               jds3/linux    1 usb mouse(CorePointer)
                                            and                      good
                                      1 ps2 mouse(Switch)
-----------------------------------------------------------------------------
Comment 9 bill.haneman 2005-01-17 13:00:25 UTC
Is the behavior improved if you set gok's valuator sensitivity to a smaller
number, for instance 0.2 ?
Comment 10 Tim Miao 2005-01-18 02:22:23 UTC
Is gok's valuator sensitivity the "Delay before Activation" value? I didn't
change this value before. It is always the original value "0". And I think it's
the minimum user could set.
Comment 11 bill.haneman 2005-01-18 13:54:54 UTC
"Is gok's valuator sensitivity the "Delay before Activation" value?"

No, it's marked "Valuator sensitivity" and it's on the "Actions" page of the
settings dialog.
Comment 12 Tim Miao 2005-01-19 01:16:05 UTC
Created attachment 36224 [details]
Screenshot
Comment 13 Tim Miao 2005-01-19 01:17:36 UTC
But I could only find the "Delay before Activation" value in Actions tab.
Please refer to the attachment above.
Comment 14 bill.haneman 2005-01-19 12:01:55 UTC
Tim:  you must switch to a Dwell action in the 'Name' combobox before you see
the relevant setting.  (This bug is about dwell performance, not switch
behavior, if I understand correctly)
Comment 15 Tim Miao 2005-01-20 01:20:38 UTC
Thank you Bill. According to your comments in #9 and #14, the performance is
partly improved. But I find if I set the "Define Actions" as switch and "Access
Methods" as "Dwell Selection", the performance is poor. This is the right bug I
filed here.
Comment 16 bill.haneman 2005-01-20 12:02:34 UTC
OK, so you are saying that changing the valuator sensitivity for the 'Dwell'
action reduces the severity of this bug... right?
Comment 17 David Bolter 2005-04-11 18:31:07 UTC
Tim, do you know if there has been any further investigation into this from the
sparc hardware end?
Comment 18 David Bolter 2005-05-09 14:23:06 UTC
reopening (i closed this one by mistake)
Comment 19 bill.haneman 2005-09-15 13:55:08 UTC
Here's a candidate patch for this bug.  I still cannot find the root cause, but
the patch attached causes GOK to cache the XInput motion events and act on them
at idle, as opposed to forcing activity on each XInput motion event as it is
received.  This makes GOK more robust against the scenario where either it's own
"find key at mouse position" calculations, or other client-side calculation
(such as XInput calculation) becomes slower than the XInput event delivery
itself (i.e protects against "can't keep up" scenario).

Comment 20 bill.haneman 2005-09-15 13:56:51 UTC
Created attachment 52276 [details] [review]
patch to make GOK react to XInput events only at idle
Comment 21 bill.haneman 2005-10-05 15:59:44 UTC
Patch has been associated with regressions/crashes on SPARC.  Possibly this is
due to insufficient error checking before the memcpy() call, revised patch is
pending.
Comment 22 David Bolter 2006-10-05 19:37:58 UTC
Bill,

Just bumping this. Is it still on your radar?

Comment 23 David Bolter 2007-01-19 20:28:51 UTC
Closing as OBSOLETE, please reopen as you deem necessary.
Comment 24 bill.haneman 2007-01-24 16:34:26 UTC
Why was this closed?  AFAIK status did not change...
Comment 25 David Bolter 2007-01-24 17:11:44 UTC
Reopening.
Comment 26 David Bolter 2007-07-10 19:21:34 UTC
Bill, are you still around?  Would be great to get this patch refreshed and tested against trunk.
Comment 27 Akhil Laddha 2011-10-14 10:57:49 UTC
gok (GNOME on-screen keyboard) development has been stalled and it has been replaced by caribou [1]. Maintainers don't have future development plan so i am closing all the bugs as WONTFIX.

[1] https://mail.gnome.org/archives/gnome-bugsquad/2011-October/msg00001.html