Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Significant text layout speed improvements
Significant text layout speed improvements
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Mon May 28, 2007 2:40 pm    Post subject: Significant text layout speed improvements

FYI. After optimizing image drawing operations and memory usage in NeoOffice 2.1 Patch 5, I took some time to try and optimize NeoOffice's text layout code.

As a result, I have optimized the code so that text layout now runs between 2 and 2.5 times as fast as the Patch 5 code. Put another way, text layout now draws in only 40% - 50% of the time that it did in Patch 5.

As I've probably mentioned before, Mac OS X native text layout is much slower than X11 text layout and even with the optimizations, native text layout is still slower than X11 text layout. This is the price that we pay for those pretty anti-aliased fonts that Apple bundles with Mac OS X. Nevertheless, my latest optimatizations narrows the gap by a sizable amount.

Since my fixes contain some pretty significant changes to the text layout code, I suspect that there will be a few new bugs so I have posted the following test patch. Please help me find any bugs by using this test patch:

PowerPC:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-1-PowerPC.dmg

Intel:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-1-Intel.dmg

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Tue May 29, 2007 6:14 am    Post subject:

Since installing this test patch, the redrawing of some of the panels (e.g. the Indents tab in the Paragraph Formatting dialogue) has been slowed down, after clicking on the up/down spinners to change the text indent, for example.

I am using ShapeShifter, and this change of behaviour is only exhibited when SS is enabled, so it shouuldn't affect most people (unless it's still there when SS is off, but not noticeable because my mac is too fast!).

If this is useful to know: the affect is most noticeable the first time I click on a spinner - like around a 1/2 second delay before screen redraw - and then still there but shorter delay every time after that.

- padmavyuha
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 29, 2007 10:25 am    Post subject: Re: Significant text layout speed improvements

Here's another test patch to try. I have found a few more small performance improvements and I have reversed the screen flushing optimization that I had in the last test patch that is probably causing the problem that ovvldc is seeing:

PowerPC:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-2-PowerPC.dmg

Intel:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-2-Intel.dmg

Patrick
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Tue May 29, 2007 1:05 pm    Post subject:

I haven't had a chance to try out test 2 yet. But in both patch 5 and patch 5 test 1, I occasionally see thin white lines through the text, as well as "scrunched" lines where one line of text is squeezed/scrunched. Both resolve if I scroll the affected areas off and back on the screen.

Since this was happening with patch 5 before I installed test patches, would you like me to file a bug report, or should I just report on any changes here?

I do have a screen shot with both effects if that's of help.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 29, 2007 1:20 pm    Post subject:

Lorinda wrote:
Since this was happening with patch 5 before I installed test patches, would you like me to file a bug report, or should I just report on any changes here?


Yes. Please file a bug report. Try to include a sample document and the scrolling patterns that you can use to reliably get the drawing problem to occur.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Tue May 29, 2007 1:35 pm    Post subject: Re: Significant text layout speed improvements

pluby wrote:
I have reversed the screen flushing optimization that I had in the last test patch that is probably causing the problem that ovvldc is seeing


I thought padmavyuha was seeing problems. I can't keep up with your test patches quickly enough to see problems Smile.

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 29, 2007 1:40 pm    Post subject: Re: Significant text layout speed improvements

ovvldc wrote:
I thought padmavyuha was seeing problems. I can't keep up with your test patches quickly enough to see problems Smile.


That's what happens when I try to read trinity posts in one window and write a post in another. Smile

Patrick
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Tue May 29, 2007 2:06 pm    Post subject:

pluby wrote:
Lorinda wrote:
Since this was happening with patch 5 before I installed test patches, would you like me to file a bug report, or should I just report on any changes here?


Yes. Please file a bug report. Try to include a sample document and the scrolling patterns that you can use to reliably get the drawing problem to occur.

Patrick


Done. It's bug 2439
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue May 29, 2007 2:10 pm    Post subject:

No, no, that was just Patrick foreseeing a future problem you were going to have and fixing it before it ever occurred.

Er, wait, that was a different sci-fi movie Wink

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Tue May 29, 2007 3:38 pm    Post subject:

Hey, look, Patrick is fast, but not that fast..

-Oz
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue May 29, 2007 9:07 pm    Post subject: Re: Significant text layout speed improvements

Here's another test patch to try. Ed helped me get rid of the stray pixels when scrolling rapidly. Hopefully that bug is squashed:

PowerPC:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-3-PowerPC.dmg

Intel:
http://www.neooffice.org/test/NeoOffice-2.1-Patch-5-Test-3-Intel.dmg

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Wed May 30, 2007 1:02 am    Post subject:

Yup, for me test patch 3 (on intel) fixes both the panel redraw delay and the scrolling white-outs (that lorinda mentioned) that I hadn't had time to file a bug over, myself. Oh, and the text-scrolling speed (even with ShapeShifter running) is noticeably faster too - no dropouts now when doing quick page-downs. Rah, rah, Patrick.

- padmavyuha
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed May 30, 2007 7:31 pm    Post subject:

It also fixes these issues on the older test box of mine where I could reproduce them earlier and makes older PPCs feel snappier as well, esp. for text-only documents.

ed
Back to top
amayze
The Merovingian


Joined: Oct 24, 2005
Posts: 561
Location: Edinburgh, Scotland

PostPosted: Thu May 31, 2007 5:26 am    Post subject:

The white lines when scrolling have gone for me too, but now there's the opposite problem when there are miss-spellings:



To re-create:
* Spell a word wrong and scroll the window so the wiggly line is half hidden by the bottom of the window.
* Turn off spell-checking with the toolbar button
* Turn spell-checking back on.
* Scroll down the document.

The extra bit of red line disappears when the mouse is moved over the lower scroll bar and tool bar.

Andy.
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Thu May 31, 2007 7:14 pm    Post subject:

Yes, that issue can be replicated using lines in tables. Patrick and I are aware of it and we'll work on tracking it down. Thus far it seems to be isolated to only that bottom portion of the Writer window; I haven't seen any graphic marring anywhere else. There's something that we need to flip back to doing rectangular clipping and will need to wade through things to figure out what it is. The wavy lines are drawn by setPixel() IIRC so I may start taking a look there.

Thanks for the screenshot and the steps to repro!

ed
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.