bugBattle for Wesnoth - Bugs: bug #21801, entering "Create Game"...

 
 
Show feedback again

bug #21801: entering "Create Game" is slow

Submitted by:  SlowThinker <slowthinker>
Submitted on:  Sat 15 Mar 2014 11:46:15 PM UTC  
 
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Multiplayer Lobby
Status: Need InfoPrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 1.11.11Operating System: Windows XP

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Tue 20 May 2014 10:25:30 PM UTC, comment #5:

i have investigated this problem on current master and it seems like the slowness is mainly caused by the code that calculates the preview-maps in the mp crate screen, especialy becasue we parse the [terrain_info] configs from the game config again for every map we draw.

Daniel <gfgtdf>
Project Member
Wed 09 Apr 2014 06:38:01 PM UTC, comment #4:

I will clarify my original report. What I object is the "6s-delay" next:

1.11:
I choose Main Menu / Multiplayer /Local Game, and "Reading files and creating cache" comes (it is long, tens of seconds; but I understand it, all multiplayer is loaded). So I reach "Create Game" window.
Then I return to the Main Menu and reenter Multiplayer /Local Game. Now "Reading files and creating cache" is skipped but still there is about 6s delay (if my CPU is used by Wesnoth only).

(1.10.7:
This moment takes not 6s but about 0.5s
)

1.11:
If I am in "Create Game", I click "Next", and "Back", then I return to "Create Game", but there is that 6s delay again(!)

SlowThinker

Anonymous
Wed 09 Apr 2014 07:38:19 AM UTC, comment #3:

The reason why Wesnoth reloads configs is that we don't want to load them all at once if not needed. So, we got these defines which guard SP/MP Campaigns, MP scenarios, eras etc. And when you play SP/MP Campaign, you have to reload config, but this time it have to include appropriate define for a campaign. This also happens when you enter multiplayer, except that this time we always load MULTIPLAYER define which guards all MP stand-alone scenarios, eras etc.

This is of course not a perfect solution and in the feature we will probably stop loading all MP content at once by using individual defines rather than putting everything under MULTIPLAYER define.

By the way, did you experienced the same loading speeds using 1.10.7?

Andrius Silinskas <thunderstruck>
Project Member
Tue 08 Apr 2014 11:13:00 PM UTC, comment #2:

Yes, it was on a comp with an old CPU, Conroe-L, 1 core, 1.8 Mhz. Only one add-on installed, less than 500k of WML+lua code.

But I don't understand why Wesnoth reloads the config repeatedly ...

SlowThinker <slowthinker>
Tue 08 Apr 2014 09:20:06 PM UTC, comment #1:

It could be the case that you have loads of add-ons and your PC specs are not that great. Currently, Wesnoth reloads all game configs when you go to multiplayer and then again when you select MP Campaign or exit it.

So, could you say how many add-ons do you have and what are your PC specs?

Andrius Silinskas <thunderstruck>
Project Member
Sat 15 Mar 2014 11:46:15 PM UTC, original submission:

Entering the window "Create Game" is very slow, regardless where one enters it from:
It happens even if a player is in the window "Configure Game" already, and he presses "Back".

SlowThinker <slowthinker>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gfgtdf (Posted a comment)
  • -unavailable- added by thunderstruck (Posted a comment)
  • -unavailable- added by slowthinker (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Apr 2014 09:20:06 PM UTCthunderstruckStatusNone=>Need Info
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup