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: Ready For TestPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
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.


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

Sat 17 Oct 2015 01:56:57 PM UTC, comment #11:

I think this issue may be marked as "fixed".

I have run a test on Atom N570, 1.66 GHz:
BfW 1.12.4: less than 4s
BfW 1.13.1: less than 1s

SlowThinker <slowthinker>
Sat 17 Oct 2015 01:13:22 PM UTC, comment #10:

I think the load times are too short to derive any meaningful comparisons across CPUs. Even my Ivy Bridge E takes around a half to a full second to load the Create Game screen. In all cases, I'm noticing that upon returning to the Title Screen, going back to the Create Screen is instantaneous, so there's some sort of caching in place. This is an improvement upon your original submission, I think.

Wedge009 <wedge009>
Sat 17 Oct 2015 01:04:17 PM UTC, comment #9:

Wedge009, I didn't test it after last changes that were aplied to BfW 1.13 by Chris Beck.

Did you run your test with 1.13 only? It might be useful to run the test with 1.12 too and to compare.

I guess one core of your Penryn is max. twice as fast as my Conroe_L, so the process in 1.13 might be 3-times faster than in 1.12.

I don't know whether my Conroe-L 1.8 GHz is still operating, but if needed then I could run tests with an Atom, which is even slower than Conroe-L.

SlowThinker <slowthinker>
Sat 17 Oct 2015 06:49:21 AM UTC, comment #8:

slowthinker, can you comment on whether this is still an issue for you at the moment? On my Penryn 2.5 GHz laptop I only notice a load time of maybe a second. Granted, it's a faster system than your Conroe 1.8 GHz (I'm guessing you meant GHz, not MHz) but I don't think it would be six times faster unless there is something else going on in this issue besides CPU processing power.

Wedge009 <wedge009>
Sat 16 May 2015 09:58:44 PM UTC, comment #7:


I would like to have a system that would remind me this bug once I install BfW 1.13...

but I guess
neither I can bookmark it
nor bugs that are "ready to test" can get another color than red (like yellow)...

SlowThinker <slowthinker>
Sat 08 Nov 2014 04:48:20 AM UTC, comment #6:

I have made two changes in master to try to improve this:

- Minimap images are cached in the mp create screen. (This won't actually address the specific thing you reported but I think it's a good idea anyways.)


- Terrain type data, after being loaded from all of multiplayer, is cached and remembered, only being discarded when you change to SP or editor. It is also shared amongst the maps that you load, so this will speed things up any time a new map is loaded.


Qualitatively I think it is a modest improvement overall, however profiling results were inconclusive. I never observed extremely slow loading times with this machine. I'm going to mark this one "ready for test". (Note that we didn't do anything in 1.12 and almost surely don't have time.)

Chris Beck <involution>
Project Member
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:

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

This moment takes not 6s but about 0.5s

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


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

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 shadowmaster (Updated the item)
  • -unavailable- added by wedge009 (Posted a comment)
  • -unavailable- added by involution (Posted a comment)
  • -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.


    Error: not logged in



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 16 Dec 2015 06:51:20 PM UTCshadowmasterOpen/ClosedOpen=>Closed
    Sat 08 Nov 2014 04:48:20 AM UTCinvolutionStatusNeed Info=>Ready For Test
    Tue 08 Apr 2014 09:20:06 PM UTCthunderstruckStatusNone=>Need Info
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup