Compiled with VC9 - slow performance

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
User avatar
PawelS
Posts: 31
Joined: March 28th, 2009, 12:15 pm
Location: Poland, EU

Compiled with VC9 - slow performance

Post by PawelS »

I made a small change to the source code (the change is described in this thread, if someone is interested) of the newest version of Wesnoth (1.9.4), and compiled it using Visual C++ Express 2008 (aka VC9), and the instructions found here (variant 2). It works, but it's very slow compared to the Windows binaries that can be downloaded from the Wesnoth site, especially "loading files and creating cache" takes a lot of time. I also noticed 2 other differences: the version I compiled creates a console window when running, and changing the language doesn't work.

My questions:

1. Which method is used to compile the official Windows binaries?
2. Will using variant 1 of the compilation instructions (using cmake) help? If so, what's a "svn command-line executable" and where can I get it?
3. Can I do anything else to make it run faster?
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Compiled with VC9 - slow performance

Post by Anonymissimus »

PawelS wrote:1. Which method is used to compile the official Windows binaries?
They're compiled with gcc/g++'s windows variants (judging from file size but mainly behavior of the executable).
3. Can I do anything else to make it run faster?
You maybe used debug configuration to compile ? Set it to release when not working on the source code (see menu bar in VS).
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
PawelS
Posts: 31
Joined: March 28th, 2009, 12:15 pm
Location: Poland, EU

Re: Compiled with VC9 - slow performance

Post by PawelS »

Thanks, after changing the configuration to Release it's much faster, the only problem left is that I still can't change the language.
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Compiled with VC9 - slow performance

Post by Max »

windows debug build is really painfully slow (google for iterator debugging).

what do you mean by "can't change the language"? does it crash?
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Compiled with VC9 - slow performance

Post by Anonymissimus »

Max wrote:what do you mean by "can't change the language"? does it crash?
No. But the neccessary files can only be created when compiling Linux-ish and not with an IDE apparently. My win build also lacks German translations (it matters little for me so I never invested in solving it).
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
PawelS
Posts: 31
Joined: March 28th, 2009, 12:15 pm
Location: Poland, EU

Re: Compiled with VC9 - slow performance

Post by PawelS »

It's not a big deal for me either. It doesn't crash, it's just always English regardless what I choose in the main menu.
Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: Compiled with VC9 - slow performance

Post by Max »

all you need to do is copy the translations folder from the official package.
Post Reply