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 375782 - The performance of orca full screen magnification is not good.
The performance of orca full screen magnification is not good.
Status: RESOLVED OBSOLETE
Product: orca
Classification: Applications
Component: magnification
2.17.x
Other opensolaris
: Normal normal
: 2.22.0
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks: 491756
 
 
Reported: 2006-11-16 02:44 UTC by Tim Miao
Modified: 2008-07-22 19:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
disable mouse drawing control throw orca (712 bytes, patch)
2007-08-14 16:53 UTC, Carlos Eduardo Rodrigues Diógenes
none Details | Review
Modification to disable any mouse tracking by Orca (1.13 KB, patch)
2007-08-14 19:07 UTC, Willie Walker
none Details | Review

Description Tim Miao 2006-11-16 02:44:01 UTC
Please describe the problem:
This is an performance bug for orca full screen mag with virtual frame buffer.

Steps to reproduce:
1. Configure the virtual frame buffer on a machine.
2. Invoke orca and enable the magnifier.
3. Set the source screen to :0.1, target screen to :0.0, zoom place to the maximum of screen resolution.
4. Move mouse cursor around the magnified screen, click the launch menu button and select one menu item in All Applications->Accessories->Test Editor.

Actual results:
The performance of orca full screen mag is not good, we can see lags while moving the mouse cursor, while gnopernicus full screen mag is better that orca does.

Expected results:
The performance of orca full screen should not be worse than gnopernicus full screen mag since they are based on gnome-mag.

Does this happen every time?
Yes.

Other information:
This bug is visible with both xorg and xsun on solaris.
Comment 1 Willie Walker 2006-12-05 18:41:30 UTC
Hi Tim: Do you have detailed instructions for how to configure the virtual frame buffer on Solaris Nevada? 
Comment 2 Tim Miao 2006-12-06 03:46:08 UTC
Hi Will, you can refer to this link: http://sceri.prc.sun.com/desktop/Browser/QA/Test_Plan/Accessibility/Vermilion/magnifier-configure.html
on x86 boxes, you could refer to the link: http://www.gnome.org/learn/access-guide/2.10/apas03.html
Comment 3 Willie Walker 2006-12-07 00:12:44 UTC
After some experimentation, I can the see the sluggishness even when not in full screen mode.  Confirming this as a future RFE.  Thanks!
Comment 4 Willie Walker 2007-01-24 16:53:24 UTC
Also:  "gnome mag has finished a new feature supporting full screen
magnification for XOrg composite extension. A user can use command line
to start it such as "magnifier --ignore-composite=0 -f -m
--smooth-scrolling". I think a user should also be able to start
magnifier by ORCA configuration. For the new feature discusstion you can
see 
http://bugzilla.gnome.org/show_bug.cgi?id=348375"
Comment 5 bill.haneman 2007-01-24 17:10:20 UTC
This bug is a bit of a mystery - since it was not noted with magnifier in standalone mode using VFB or dummy driver, and was not noted with gnopernicus magnification in the past.  Might this have to do with the synchronous pointer-drawing logic that was added for orca?  Mystery is, why is it worse when using two framebuffers?  

Tim, can you test with two physical framebuffers, to see if the results are similar?
Comment 6 Willie Walker 2007-06-27 20:04:30 UTC
http://sceri.prc.sun.com/desktop/Browser/QA/Test_Plan/Accessibility/Vermilion/magnifier-configure.html
> on x86 boxes, you could refer to the link:
> http://www.gnome.org/learn/access-guide/2.10/apas03.html

These kind of helped me get going -- thanks! In reviewing this again, I think the lag may have gotten better in Nevada build 66.  Can you please retest.  If it still seems bad, can you quantify what you mean by lag?  Is it on the order of seconds per frame refresh?  In addition, do you know of a way to run just 'magnifier' with the dummy driver so we can evaluate what it does all by itself?
Comment 7 Tim Miao 2007-06-28 06:14:59 UTC
OK, I'll test magnification scenario with latest orca and neveda build, and give you update after testing. Thanks!
Comment 8 Willie Walker 2007-08-13 19:03:59 UTC
In e-mail with Tim, I think we're at the point where the magnifier in standalone mode is running faster than the magnifier as being driven by Orca.  

My guess with what's going on is due to the fact that Orca supports more mouse tracking features than the magnifier.  It supports centered/push/proportional.  As a result, Orca needs to listen for mouse motion events, make some decisions based upon these events, and then tell the magnifier what to magnify.  This is all done via CORBA.

If we were able to get the magnifier to support centered/push/proportional (and more?) modes, then Orca would not need to listen for mouse motion events and the magnifier could take care of mouse tracking directly.  I suspect this might result in much better performance.
Comment 9 Carlos Eduardo Rodrigues Diógenes 2007-08-14 14:34:19 UTC
I changed Orca to doesn't update the pointer and the magnifier worked almost with the same performance, so I don't think that implementing the cursor tracking logic in gnome-mag will help much with this.
Comment 10 Willie Walker 2007-08-14 14:53:51 UTC
(In reply to comment #9)
> I changed Orca to doesn't update the pointer and the magnifier worked almost
> with the same performance, so I don't think that implementing the cursor
> tracking logic in gnome-mag will help much with this.
> 

How did you make this change (do you have a patch just for the purposes of discussion)?
Comment 11 Carlos Eduardo Rodrigues Diógenes 2007-08-14 16:53:11 UTC
Created attachment 93655 [details] [review]
disable mouse drawing control throw orca

I think that it's possible to implements the behaviour that orca does when it's controlling mouse drawing position directly within gnome-mag. I think that do this is much more reasonable and if we still have performance problems, then we can think in implement the mouse track logics directly in gnome-mag.
Comment 12 Willie Walker 2007-08-14 19:07:44 UTC
Created attachment 93675 [details] [review]
Modification to disable any mouse tracking by Orca

I think I see where we were thinking differently.  If we can push the various pointer tracking modes into gnome-mag, we can eliminate the need for Orca to listen for mouse motion events. Here's a test patch that eliminates Orca's listening for mouse motion events.  It currently doesn't allow any mouse tracking by anyone (Orca or gnome-mag) -- I'm not quite sure how to tell gnome-mag to take control.  Carlos, do you know the magic incantations?
Comment 13 Carlos Eduardo Rodrigues Diógenes 2007-08-14 20:45:30 UTC
gnome-mag doesn't do mouse tracking, so it doesn't have interfaces to tell it to take control.

I tested here again, disabling the calls to setPointerPos and percept some degradation in performance (more from what I percept in the last post), but I don't think that this is really a problem to users.

My machine isn't that fast and the lag apparently doesn't appear to be big, so an user will consider a problem. Tim, do you have user critics about the lags that you percept? In Ubuntu forums and mailing lists I only saw compliments about how the mouse tracking was accurately in the latest versions of Orca.
Comment 14 Willie Walker 2007-12-06 18:15:02 UTC
(In reply to comment #7)
> OK, I'll test magnification scenario with latest orca and neveda build, and
> give you update after testing. Thanks!
> 

Tim - is this still bad, as in it is much worse when running with Orca than when with running magnifier by itself?
Comment 15 Tim Miao 2007-12-07 02:03:04 UTC
Will, this is improved already after several builds magnifier scenario testing with composite extension enabled. The problem right now is the gnome mag bug #496355 Magnifier causes cpu usage much high, I think.
Comment 16 Willie Walker 2007-12-14 00:17:04 UTC
(In reply to comment #15)
> Will, this is improved already after several builds magnifier scenario testing
> with composite extension enabled. The problem right now is the gnome mag bug
> #496355 Magnifier causes cpu usage much high, I think.
> 

Thanks Tim!  I'm going to close this bug out and we'll track the other problem via bug 496355.