You are not logged in.

#1 2018-01-13 07:36:24

rossboulet
Member
Registered: 2015-01-23
Posts: 22

[SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

I noticed on several machines that the gnome-mahjongg had become slow responding to mouse clicks. My second to last full upgrade was on December 26 and all was well. Ran another upgrade on January 10 and started seeing the issue. I used the archives and rolled a VM back to December 25 and started upgrading packages. Through some trial and error, I zeroed in on the upgrade of librsvg from 2.40.20 to 2.42.0. If I ignore that one package, everything is fine. If I install it, it stars taking a second or two for gmome-mahjongg to respond. I have emailed the developer for librsvg, so we'll see what he says.

Last edited by rossboulet (2018-01-27 20:49:58)


I really hate this damn machine,
I wish that they would sell it.
It never does just what I want,
But only what I tell it.    -Anonymous

Offline

#2 2018-01-13 16:47:57

a821
Member
From: My Location
Registered: 2012-10-31
Posts: 103

Re: [SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

I can confirm the issue. To add: the version 2:2.40.20-1 works fine for me, but if I upgrade to 2:2.41.2-1 the sluggishness appears. The current version (2:2.42.0-1) does not solve it.

I tried running gnome-mahjongg from a terminal, but it generates no output... Let's see what the developer says.

Offline

#3 2018-01-13 20:45:08

rossboulet
Member
Registered: 2015-01-23
Posts: 22

Re: [SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

The developer responded:

Do the tiles or any of the SVGs involved have a lot of "transform" attributes?

The only major slowdown in librsvg's move to Rust, that I know of, is when many elements in the SVG have transform attributes. This will be fixed soon.

If there aren't a lot of transform attributes, then it's something else, and definitely needs investigating smile

Federico


I really hate this damn machine,
I wish that they would sell it.
It never does just what I want,
But only what I tell it.    -Anonymous

Offline

#4 2018-01-13 21:57:12

a821
Member
From: My Location
Registered: 2012-10-31
Posts: 103

Re: [SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

rossboulet wrote:

Do the tiles or any of the SVGs involved have a lot of "transform" attributes?

It seems they have a lot, whatever a lot means, which would explain the slow down sad

$ grep transform  /usr/share/gnome-mahjongg/themes/postmodern.svg
 <use transform="translate(88.5,16.5) scale(1.22)" xlink:href="#dots"/>
 <use transform="translate(88.5,42.5) scale(1.22)" xlink:href="#dots"/>
 <use transform="translate(88.5,104.5) scale(1.22)" xlink:href="#dots"/>
 <use transform="translate(88.5,130.5) scale(1.22)" xlink:href="#dots"/>
[...]

$ grep -c transform /usr/share/gnome-mahjongg/themes/postmodern.svg
170

(I’m guessing the tiles are stored in this file, I might be wrong)

So let's hope that it's fixed soon.

Last edited by a821 (2018-01-13 21:59:32)

Offline

#5 2018-01-27 13:29:02

a821
Member
From: My Location
Registered: 2012-10-31
Posts: 103

Re: [SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

Just notice that librsvg was updated to 2.42.1. This release fixes the performance issue with the "transform" attributes (see here) and gnome-mahjongg works OK for me.

Offline

#6 2018-01-27 20:49:27

rossboulet
Member
Registered: 2015-01-23
Posts: 22

Re: [SOLVED] gnome-mahjongg sluggish with librsvg 2.42.0

a821 wrote:

Just notice that librsvg was updated to 2.42.1. This release fixes the performance issue with the "transform" attributes (see here) and gnome-mahjongg works OK for me.

Agreed. Marking as solved.


I really hate this damn machine,
I wish that they would sell it.
It never does just what I want,
But only what I tell it.    -Anonymous

Offline

Board footer

Powered by FluxBB