Follow-up Comment #2, patch #3454 (project freeciv):

I've been vaguely thinking about scratching this itch again.

It would be simplest to implement if the flags were all available as named
sprites simultaneously, rather than having "sub-tilesets" which are loaded and
unloaded when the option changes.

However, a naive implementation would have two lots of >500 flags in client
memory at all times with the default ruleset. I don't know if that's a large
memory increase, but it seems likely to be noticeable.

I wonder if there's scope for some kind of load-on-demand for selected
sprites, where they're not actually allocated until first use. Along with a
flush-unreferenced-sprites call, that might make it feasible to have only one
set of flags in memory most of the time in practice.
(And perhaps allow us to make even larger flagsets available for use once the
game starts; it seems a shame that we have SVG of every flag but only tiny
rendered versions; if in practice only those extra-large flags for nations
actually in the game were loaded, that might allow us to render and use them
in e.g. diplomacy dialogs.)

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3454>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to