Comment 23 for bug 1121982

Revision history for this message
Chuck Wilder (chuckw20) wrote : Re: [Bug 1121982] Re: Reduce video memory consumption by merging animation frames

Great! I'll try out that new script ASAP. Thanks!

On Thu, Mar 21, 2013 at 3:20 PM, Tino <email address hidden> wrote:

> I've revisited the point representations for those new values and
> regions. All conf files should be changed accordingly and the spritemaps
> python script is changed, too.
>
> Now let's see what i can do to adapt the script for more models...
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1121982
>
> Title:
> Reduce video memory consumption by merging animation frames
>
> Status in Widelands:
> Confirmed
>
> Bug description:
> The game currently requires a lot of video memory to store all the
> animation frames of in-game objects.
>
> In many cases, there is a lot of redundancy in those frames. For
> example. the barbarian headquarters animation has 20 frames, each of
> size 120x120, adding up to 288000 pixels or slightly more than 1MB of
> video memory. However, those frames differ only by the fairly small
> animation of the building's flags.
>
> It could be quite beneficial to extract one base texture plus
> difference images. In the case of the barbarian headquarters, this
> could probably get video memory consumption down to about 40000 pixels
> or around 160kB, an improvement by a factor 6. Admittedly, this
> particular example is probably one of the cases that would benefit
> most, but the concept seems worthy of investigation.
>
> Any implementation would have to be as transparent as possible, and
> should especially avoid putting any additional work on the graphics
> developers.
>
> Conversion Status:
> Yet to be converted: all global and empire animations, plus
> atlantean: armoursmith, baker, bakery, blackroot_farmer, builder,
> burner, burners_house, carrier, constructionsite, crysatalmine, farmer,
> fish_breeder, fisher, forester, geologist, goldmine, horse, horse_breeder,
> hunter, ironmine, mill, miller, miner, flags, sawmill, sawyer, scout,
> scouts_house, ship, shipwright, shipyard, smelter, smoker, smokery,
> soldier, spiderbreeder, stonecutter, toolsmith, trainer, weaponsmith,
> weaver, woodcutter
>
> barbarian: baker, barrier, blacksmith, brewer, builder, burner,
> carrier, cattlebreeder, chief-miner, citadel, coalmine, constructionsite,
> deep_coalmine, deep_goldmine, deep_oremine, deeper_coalmine,
> deeper_goldmine, deeper_oremine, deer, donjon, farmer, ferner, fisher,
> flags, fortress, gamekeeper, geologist, gold_mine, granitemine,
> headquarters_interim, helmsmith, helmsmithy, hunter, innkeeper,
> lime-burner, lumberjack, lumberjacks_hut, master-blacksmith, master-brewer,
> master-miner, miner, oremine, ox, flags, port, quarry, ranger, rangers_hut,
> scout, sentry, ship, shipwright, smelter, soldier, stonemason, stronghold,
> trainer, trainingscamp, weaver, well, wildboar
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/widelands/+bug/1121982/+subscriptions
>