bugFreeciv - Bugs: bug #22159, Gtk2 research report redraw slow...

 
 
Show feedback again

bug #22159: Gtk2 research report redraw slow with experimental ruleset

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Sun 08 Jun 2014 10:40:37 AM UTC  
 
Category: clientSeverity: 3 - Normal
Priority: 5 - NormalStatus: Duplicate
Assigned to: NoneOpen/Closed: Closed
Release: S2_5/trunk r25086Operating System: GNU/Linux
Planned Release: 2.5.0, 2.6.0

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 23 Oct 2014 08:48:06 PM UTC, comment #11:

> 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).

pepeto <pepeto>
Project Member
Sun 12 Oct 2014 10:56:39 AM UTC, comment #10:

Comment #2:

> 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.

Jacob Nevins <jtn>
Project Administrator
Sun 12 Oct 2014 09:12:08 AM UTC, comment #9:

Patch #5357 helps with this.

Jacob Nevins <jtn>
Project Administrator
Fri 03 Oct 2014 12:16:02 AM UTC, comment #8:

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.

Sveinung Kvilhaugsvik <sveinung>
Project Member
Thu 02 Oct 2014 08:57:57 PM UTC, comment #7:

> 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?

Anonymous
Thu 02 Oct 2014 08:34:45 PM UTC, comment #6:

> 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.

Anonymous
Thu 02 Oct 2014 04:06:40 PM UTC, comment #5:

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 )

mir3x <mir3x>
Project Member
Thu 02 Oct 2014 02:07:12 PM UTC, comment #4:

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)

Christian Knoke <chrisk>
Project Member
Wed 01 Oct 2014 10:03:41 PM UTC, comment #3:

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.

Christian Knoke <chrisk>
Project Member
Wed 01 Oct 2014 10:00:23 PM UTC, comment #2:

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

Christian Knoke <chrisk>
Project Member
Tue 01 Jul 2014 09:26:18 AM UTC, comment #1:

> 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?

Jacob Nevins <jtn>
Project Administrator
Sun 08 Jun 2014 10:40:37 AM UTC, original submission:

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.)

Jacob Nevins <jtn>
Project Administrator

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #22488:  freeciv-gtk2.prof.bz2 added by chrisk (78kB - application/x-bzip2)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pepeto (Posted a comment)
  • -unavailable- added by sveinung (Posted a comment)
  • -unavailable- added by mir3x (Posted a comment)
  • -unavailable- added by chrisk (Posted a comment)
  • -unavailable- added by jtn (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Oct 2014 11:12:28 AM UTCjtnOpen/ClosedOpen=>Closed
    Thu 23 Oct 2014 08:48:06 PM UTCpepetoCategoryclient-gtk-2.0=>client
      StatusNone=>Duplicate
    Thu 02 Oct 2014 02:07:12 PM UTCchriskAttached File-=>Added freeciv-gtk2.prof.bz2, #22488
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup