Improved performance addon

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
User avatar
Crash
Posts: 14
Joined: July 16th, 2014, 9:21 pm
Location: Empire City
Contact:

Improved performance addon

Post by Crash »

Since BoW devs aren't interested in improving games performance (which has severely worsened over 1.16-18), maybe some modder could make an addon for this specific purpose ? :)
"Machine intelligence is the last invention that humanity will ever need to make"

- Nick Bostrom
User avatar
Ravana
Forum Moderator
Posts: 3313
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Improved performance addon

Post by Ravana »

No.
User avatar
beetlenaut
Developer
Posts: 2867
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Improved performance addon

Post by beetlenaut »

I've decided to ignore the snark (directed at volunteers) and answer the question more fully. BfW is fast and smooth for me, and hasn't degraded at all. That's even true with maps full of water running full screen in 4k. I think it's more likely that your operating system is getting sluggish. If you are using Windows, that would make perfect sense.

You seem to think that a modder could add a bunch of code that the game needs to parse on top of all the regular stuff, and that would make the game faster. Obviously, it wouldn't. In fact, mods could be the cause of your problems too, if you have been adding more and more of them. Also, there are some poorly written ones that are especially slow.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
egallager
Posts: 651
Joined: November 19th, 2020, 7:27 pm
Location: Concord, New Hampshire
Contact:

Re: Improved performance addon

Post by egallager »

One thing that I thought would be useful would be an add-on profiler, so that if you have a bunch of add-ons, and one of them is causing things to load slowly, you could find out which one precisely, and where the problematic code is in the add-on in question...
Shiki
Developer
Posts: 373
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Improved performance addon

Post by Shiki »

The closest thing to that is to preprocess an add-on with Wesnoth's -p flag.
You can look at the "ticks" (whatever that is, I assume the value is not comparable across different computers).
You can also look at the size of the generated file (is the same as decompressed cache), but that's probably not important.

Example: ./wesnoth --preprocess-defines MULTIPLAYER -p Conquest_Asterisk /tmp/
added 2 defines.
preprocessing common macros from 'data/core' ...
acquired 1822 'data/core' defines.
preprocessing specified resource: Conquest_Asterisk ...
acquired 1922 total defines.
preprocessing finished. Took 446 ticks.
Placing common code into a [resource] does magic improvements.
However, that's about the time it takes to enter the MP Lobby or such, nothing during the actual game.
Try out the dark board theme.
Post Reply