Search found 539 matches
- Wed Apr 06, 2022 7:37 pm
- Forum: FreeOrion Project
- Topic: Online voice chat meeting, Monday April 4th 2022
- Replies: 6
- Views: 1463
Re: Online voice chat meeting, Monday April 4th 2022
Another suggestion was raised: Create a notification thread (everyone who wants to participate in the meetings subscribed). Closed one, with permission to write only for a limited number of people. This thread is only for notifications. After each meeting, create a next meeting thread. A couple of d...
- Wed Apr 06, 2022 7:28 pm
- Forum: FreeOrion Project
- Topic: New schedule for online voice chat meetings
- Replies: 2
- Views: 1001
Re: New schedule for online voice chat meetings
Works for me.
- Sat Mar 12, 2022 10:20 am
- Forum: Programming
- Topic: The Git/GitHub Questions, Answers and Howto Thread
- Replies: 216
- Views: 74851
Re: The Git/GitHub Questions, Answers and Howto Thread
If you want to checkout a branch from another fork you need to add another remote. For example, I want to get Grummel7s branch AIwithPolicies on my machine. git remote add Grummel7 https://github.com/Grummel7/freeorion.git Grummel7 is a name that will be shown in your console, you could put any, I u...
- Sat Mar 12, 2022 9:49 am
- Forum: Programming
- Topic: The Git/GitHub Questions, Answers and Howto Thread
- Replies: 216
- Views: 74851
Re: The Git/GitHub Questions, Answers and Howto Thread
One non-obvious feature of GitHub is review requests after feedback. When a person approves/comments/requests changes his name is still present on the review page, but actually, the review request was fulfilled. To request a review again you need to click on rotation arrows near the reviewer name. T...
- Wed Mar 02, 2022 8:30 pm
- Forum: Programming
- Topic: ScriptingContext from AI
- Replies: 2
- Views: 2013
- Sun Feb 06, 2022 10:15 pm
- Forum: Translations
- Topic: Translation guide (Not finished.)
- Replies: 15
- Views: 10798
Re: Translation guide (Not finished.)
can i revive the discussion please. i would prefer to use Ωt for translation. it is _the_ open source translators tool, has lots of built in support features for translators, does the git stuff itself, supports 'team projects' with multiple collaborators, one repository per target localization, set...
- Mon Sep 20, 2021 9:22 pm
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
But a case of just 3 visibility levels, the map probably is not really beneficial, you're right. If you're really keen on switching it, we can, but I wouldn't prioritize it otherwise. These are just optimization suggestions. We have a problem and I try to brainstorm the solution. Then you start dig...
- Sun Sep 19, 2021 5:13 am
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
One more vector of optimization is `map<..., ...> A map is a data structure for search. So basically it consumes more memory than data inside, to give you a faster search. https://en.cppreference.com/w/cpp/container/map . Let's look into examples: Univers/universe.h: typedef std::map<Visibility, int...
- Thu Sep 16, 2021 2:39 pm
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
If we replace it with the binary zip archive it should save some space and time (base64 encoding/decoding is not free). Part of the point of having an outer uncompressed XML structure for save files is that the header information can be read and deserialized without unzipping the whole archive, whi...
- Thu Sep 16, 2021 6:35 am
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
Took me some time to understand what compressed.xml means. We create inner xml, zip it, encode to base64, add to outer xml and save it. If we replace it with the binary zip archive it should save some space and time (base64 encoding/decoding is not free). Experiments with file zipping. Screenshot 20...
- Mon Sep 13, 2021 11:07 pm
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
It's probably possible, but it would complicate serialization and deserialization quite a bit. Almost all the data and its organization in the serialized text reflects the way the gamestate is stored in memory. There is some redundancy in that, with for example a system tracking all the objects in ...
- Mon Sep 13, 2021 10:59 pm
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
So if previous was beneficial, this should be beneficial too. What is "previous" and was it substantially beneficial when using compressed data? void Meter::serialize https://github.com/freeorion/freeorion/blob/d9186582fdad4473b797b70de941d6ecfa32ea4b/universe/Meter.h#L64 When you deseria...
- Sun Sep 12, 2021 10:15 pm
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
For the compressed strings, it would probably make no difference, assuming the compression algorithm is reasonably good. This is the same kind of the optimization as for `f, s, px`. So if previous was beneficial, this should be beneficial too. When you deserialize data you work with the uncompresse...
- Sun Sep 12, 2021 9:14 am
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
Looks like data in the `universe/objects` is already present in the `universe/empire_latest_known_objects`
Could we replace objects with just ids?
Unpacked XML: objects 15 mb, empire_latest_known_objects 57 mb.
Could we replace objects with just ids?
Unpacked XML: objects 15 mb, empire_latest_known_objects 57 mb.
- Sun Sep 12, 2021 9:01 am
- Forum: Programming
- Topic: Save game size reduction
- Replies: 30
- Views: 9609
Re: Save game size reduction
Some values could be calculated and no need to save them. The number of planets could be calculated from the planet list (orbits) <m_orbits> <count>7</count> <item_version>0</item_version> <item>-1</item> <item>-1</item> <item>-1</item> <item>-1</item> <item>-1</item> <item>-1</item> <item>-1</item>...