Bug 100120 - Just scrolling this doc with Graphite fonts is very slow, printing too
Summary: Just scrolling this doc with Graphite fonts is very slow, printing too
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
5.1.3.2 release
Hardware: All Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard: target:5.3.0
Keywords: perf
Depends on: HarfBuzz
Blocks: VCL-OpenGL
  Show dependency treegraph
 
Reported: 2016-05-29 13:39 UTC by Pierre C
Modified: 2016-11-06 18:33 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Test document (47.89 KB, application/vnd.oasis.opendocument.text)
2016-05-29 13:39 UTC, Pierre C
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre C 2016-05-29 13:39:11 UTC
Created attachment 125372 [details]
Test document

When printing attached doc, print is long. Many minutes when it needs only a few seconds with LO 5.0.6.
During this time, CPU is high, and its temperature rise over 20 °C (from 50 to 70 °C and more
When opening the doc, the UI seems very Slow
If disabling OpenGL, All is fine

The problem seems related with graphite fonts
Comment 1 Buovjaga 2016-05-31 06:00:49 UTC
What is the content of your C:\Users\User\AppData\Roaming\LibreOffice\4\cache\opengl_device.log
Comment 2 Pierre C 2016-05-31 06:41:54 UTC

OpenGL.log :
DriverVersion: 10.18.13.6822
DriverDate: 5-19-2016
DeviceID: PCI\VEN_10DE&DEV_1401&SUBSYS_36C11458&REV_A1
AdapterVendorID: 0x10de
AdapterDeviceID: 0x1401
AdapterSubsysID: 0x36c11458
DeviceKey: System\CurrentControlSet\Control\Video\{8BECCF24-B241-47C4-9843-5B67D454A9DD}\0000
DeviceString: NVIDIA GeForce GTX 960

Note that the bug is also on latest beta2 5.2 branch
And the bug is also reproduced on W10 with AMD R7 video card
Comment 3 Tor Lillqvist 2016-06-22 09:38:24 UTC
Yep, I see that even just scrolling back and forth in that document is quite slow in a master build, when OpenGL is used. I don't have any printer attached to my Windows box, so can't try that.
Comment 4 Tor Lillqvist 2016-06-22 10:26:13 UTC
Yeah, indeed is related to Graphite fonts. (Simply doing a Select All, and setting theft to some more "normal" Windows font like Cambria, makes the scrolling much smoother.)
Comment 5 Pierre C 2016-06-25 11:43:18 UTC
Yes, all my documents using graphite fonts (about 90 %] are very slow. quite unusable.
IMHO, the importance of this bug should be raised to major
Comment 6 Buovjaga 2016-06-25 11:49:16 UTC
(In reply to Pierre C from comment #5)
> Yes, all my documents using graphite fonts (about 90 %] are very slow. quite
> unusable.
> IMHO, the importance of this bug should be raised to major

I guess you are right: https://wiki.documentfoundation.org/images/0/06/Prioritizing_Bugs_Flowchart.jpg
Comment 7 Pierre C 2016-06-25 12:07:20 UTC
I don't know if this bug should be considered as a regression. It worked fine before OpenGL, and it still work fine without OpenGL. But, on the other hand, OpenGL is the future of LO and all functionality should work with OpenGL
So IMHO it's a regression

All users using graphite fonts are affected. I don't know if it concerns many people.
The only work around is to stop using graphite fonts or disable OpenGL
So Adding keyword regression
Comment 8 Buovjaga 2016-06-25 12:27:54 UTC
Well, it's not a regression in any useful sense or how they are normally seen, so removing keyword.
Comment 9 Pierre C 2016-07-25 13:15:00 UTC
Still a great problem with LO 5.1.5.1 and LO 5.2.0.3. I can't work with LO with all my docs using graphite fonts mostly all my docs).
Any chance that someone have look to this bug (Shall I change all my fonts) ?

The only workaround is to disable OpenGL an so, with large screen, Impress doesn't work. So I waste my time disabling and enabling OpenGL
Comment 10 Buovjaga 2016-07-25 19:05:15 UTC
(In reply to Pierre C from comment #9)
> The only workaround is to disable OpenGL an so, with large screen, Impress
> doesn't work. So I waste my time disabling and enabling OpenGL

What do you mean Impress doesn't work? How does it manifest?
Comment 11 Pierre C 2016-07-25 19:28:45 UTC
@Buovjaga
It's this bug
https://bugs.documentfoundation.org/show_bug.cgi?id=40534
Comment 12 Pierre C 2016-09-25 09:15:53 UTC
@Buovjaga
I don't understand why this bug can't be considered as a regression

I could work with graphite font without any problem, but now that OpenGL is enabled by default, I can't

Of course workaround is easy, I just have to disable OpenGL, but it doesn't work as expected by default.
So at least from this point of view, it's a regression.
Comment 13 Buovjaga 2016-09-26 08:57:47 UTC Comment hidden (no-value)
Comment 14 Pierre C 2016-09-26 19:05:01 UTC Comment hidden (no-value)
Comment 15 V Stuart Foote 2016-10-26 09:37:18 UTC
The new HarfBuzz based common layout does some good here with scrolling preformance with OpenGL rendering enabled.  

Unfortunately the Graphite fonts are not being rendered as cleanly--kerning issues and even some clipping looks to be happening. But the scroll is smooth.