Discussion:
[bug #22159] Gtk2 research report redraw slow with experimental ruleset
Jacob Nevins
2014-06-08 10:40:38 UTC
Permalink
URL:
<http://gna.org/bugs/?22159>

Summary: Gtk2 research report redraw slow with experimental
ruleset
Project: Freeciv
Submitted by: jtn
Submitted on: Sun 08 Jun 2014 11:40:37 BST
Category: client-gtk-2.0
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: S2_5/trunk r25086
Discussion Lock: Any
Operating System: GNU/Linux
Planned Release: 2.5.0, 2.6.0

_______________________________________________________

Details:

Just noticed that scrolling the research report with the experimental ruleset
is slow and jerky. It's smooth and fast with every other ruleset I've tried.

Affects trunk too, but doesn't affect S2_4.

The obvious difference between the experimental ruleset and others is the use
of root_reqs. But S2_4 uses them too, so maybe the differing implementations
of patch #4399 have something to do with it?

(Xubuntu 12.04.)




_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Jacob Nevins
2014-07-01 09:26:18 UTC
Permalink
the use of root_reqs. But S2_4 uses them too
Wait, no it doesn't, we took them out at the last minute.

Anyway. On S2_5, removing the root_reqs from the experimental ruleset removes
the slowdown.

It seems somehow related to which or how many root_reqs there are. If I remove
root reqs from every tech in the ruleset in order up to but not including
Automobile, it's still slow. Additionally removing from Automobile makes it
noticeably faster. Just removing Automobile's root_req and leaving all the
others makes it noticeably faster (not sure if by the same amount).

This slowness seems correlated with a delay starting the game (spawned server
so can't tell if it's in client or server).

Can anyone else reproduce this behaviour?

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Christian Knoke
2014-10-01 22:00:23 UTC
Permalink
Follow-up Comment #2, bug #22159 (project freeciv):

The slowdown is extraordinary on my machine. It affects:

- redraw of science report (F6)
- changing short and long term goals (more), no matter by icon or drop-down
- enter an explorer in a hut and discovering a tech takes several seconds. Bug
here: if a long term goal is defined, freeciv is not able to find the next
short term goal, leaving it empty.

- game start and finish turn take very long

- some other operations affected, but less

System is Intel Core One Duo 1.6 Ghz, Debian Squeeze, GCC 4.4.5,
gtk2 cient.
Options to autogen.sh were: none, or: --enable-debug=some --enable-svnrev
--enable-fcmp=gtk2 --with-readline --enable-ipv6=yes --enable-gprof
--with-efence


_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
Christian Knoke
2014-10-01 22:03:41 UTC
Permalink
Follow-up Comment #3, bug #22159 (project freeciv):

to put some numbers, must be factor 5 or more, cpu time goes into
freeciv-gtk2, not freeciv-server.

makes the game near to unuseable.



_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
Christian Knoke
2014-10-02 14:07:12 UTC
Permalink
Follow-up Comment #4, bug #22159 (project freeciv):

Also on Debian Wheezy.

30x40map 2player both AI and ruleset experimental 3 cities turn 4:

explorer enter hut and find science: 17 cpu seconds
new turn: 17 cpu seconds

Up to then I have 3:43 for freeciv-gtk2 and 0:16 for freeciv-server.

Some profiling data attached.


(file #22488)
_______________________________________________________

Additional Item Attachment:

File name: freeciv-gtk2.prof.bz2 Size:78 KB


_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
mir3x
2014-10-02 16:06:41 UTC
Permalink
Follow-up Comment #5, bug #22159 (project freeciv):

Have u checked gtk3 client, or qt ?
I think its not gtk2 issue, just all clients are affected.
no idea why its so slow ( I noticed it, but not so deadly slow for 17 secs,
maybe 1-2 max )

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
anonymous
2014-10-02 20:34:45 UTC
Permalink
Post by mir3x
Have u checked gtk3 client, or qt ?
I think its not gtk2 issue, just all clients are affected.
three times faster, but still, tech related ops are slow.

And a curious bug: an explorer who sets his foot beneath an enemy ship, gets a
tech for free. And there was definitely not hut on the place. Somewhat
related.



_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
anonymous
2014-10-02 20:57:57 UTC
Permalink
an explorer who sets his foot beneath an enemy ship, gets a tech for free.
And there was definitely not hut on the place. Somewhat related.

Or when I make an embassy. Ruleset?



_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
Sveinung Kvilhaugsvik
2014-10-03 00:16:03 UTC
Permalink
Follow-up Comment #8, bug #22159 (project freeciv):

_Or when I make an embassy. Ruleset?_
2.6 Experimental allows the Explorer to establish an embassy. It should not
give you a free tech for doing it. Can you reproduce the free tech? If you can
please file a new bug and attach a save game that show this behavior.

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Jacob Nevins
2014-10-12 09:12:09 UTC
Permalink
Follow-up Comment #9, bug #22159 (project freeciv):

Patch #5357 helps with this.

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Jacob Nevins
2014-10-12 10:56:39 UTC
Permalink
Bug here: if a long term goal is defined, freeciv is not
able to find the next short term goal, leaving it empty.
This is now tracked separately as bug #22789.

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
pepeto
2014-10-23 20:48:06 UTC
Permalink
Update of bug #22159 (project freeciv):

Category: client-gtk-2.0 => client
Status: None => Duplicate

_______________________________________________________
Post by anonymous
And a curious bug: an explorer who sets his foot beneath an
enemy ship, gets a tech for free. And there was definitely not
hut on the place. Somewhat related.
This doesn't look like to be related to the problem initially reported here
(which should be now solve with patch #5357).

_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?22159>

_______________________________________________
Message posté via/par Gna!
http://gna.org/

Loading...