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 641235 - gnibbles performance really bad when the window is big
gnibbles performance really bad when the window is big
Status: RESOLVED FIXED
Product: gnome-nibbles
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-02 12:16 UTC by Emilio Pozuelo Monfort
Modified: 2013-08-17 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixed performance by removing the logo (10.65 KB, patch)
2012-09-29 17:05 UTC, gQuigs
none Details | Review
Fully remove splash screen code (11.87 KB, patch)
2012-10-25 04:12 UTC, gQuigs
none Details | Review

Description Emilio Pozuelo Monfort 2011-02-02 12:16:15 UTC
The bigger the window is, the slower gnibbles gets, to the point that to play at a really fast speed, I need to make the window so slow that I can hardly see the worms :)

This is with gnome-games from git master, clutter 1.6.0, clutter-gtk 0.91.8 and gtk+ 2.99.2.
Comment 1 Thomas Andersen 2011-02-02 12:26:23 UTC
I can confirm this.

Did you notice this on the earlier versions of gnibbles?
Comment 2 Emilio Pozuelo Monfort 2011-02-02 12:55:57 UTC
It also happens here with gnibbles 2.30, but it used to work fine on my home desktop (I can't test there now), so it may be a clutter regression?
Comment 3 Emilio Pozuelo Monfort 2011-02-02 12:59:28 UTC
FTR, my home desktop has gnome-games 2.30 and clutter 1.2, IIRC
Comment 4 Thomas Andersen 2011-02-02 13:08:53 UTC
Could be gnibbles, clutter, or driver issue. Could also be environment - is this in gnome-shell, unity, compiz, metacity - else?
Comment 5 Emilio Pozuelo Monfort 2011-02-02 18:44:48 UTC
gnome-shell. I can try on the good old gnome-panel & metacity.
Comment 6 gnome-bugzilla.10.wech 2012-01-24 20:26:49 UTC
I've got the same problem with gnome shell in Fedora 16, gnibbles 3.2.1 - also when I reduce window size, the program speeds up. It is almost unusable when the games ends and gnibbles tries to display the start image.
Comment 7 gQuigs 2012-09-29 17:05:35 UTC
Created attachment 225389 [details] [review]
Fixed performance by removing the logo

It turns out the bad performance is caused from loading the logo to much.  This patch makes all resizes of the game board so much faster than before.  It also substantially reduces memory usage (you could actually cause the game to fill up all available memory).

In this patch, I've actually completely removed the logo and replaced with just the board.   

I do plan on working on a "new game screen" after this, which will still use the board as a backdrop.
Comment 8 gQuigs 2012-10-25 04:12:39 UTC
Created attachment 227219 [details] [review]
Fully remove splash screen code

Removing the duplicated code as per https://mail.gnome.org/archives/games-list/2012-October/msg00010.html.   

Had to make some other changes as well, you can no longer click New Game, when a game is running, you have to click End Game first.
Comment 9 Michael Catanzaro 2013-08-17 20:59:43 UTC
Looks like you've already pushed this fix.