16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 05:49:19 +02:00

Tune EU7 PACK streaming with v10 CHNK sub-chunks and worker read cache

Chunk PACK sections at bake time and decode them incrementally at runtime
to cut apply hitches during fast camera flight; cache parsed section headers
per worker thread to avoid reopening and reparsing on every sub-chunk read.
This commit is contained in:
maj00r
2026-06-14 19:49:24 +02:00
parent 8c069ec5f2
commit 56d72fb25e
9 changed files with 336 additions and 23 deletions

View File

@@ -31,8 +31,20 @@ find_pack_entry( Eu7Module const &Module, int Row, int Column );
[[nodiscard]] std::vector<Eu7Model>
read_pack_section( Eu7Module const &Module, int Row, int Column );
// Odczyt sekcji PACK: modele + precomputed UMES (v9).
// Odczyt sekcji PACK: modele + precomputed UMES (v9/v10).
[[nodiscard]] Eu7PackSectionLoad
read_pack_section_load( Eu7Module const &Module, int Row, int Column );
// Odczyt jednego sub-chunka sekcji PACK (v10 CHNK; v9/v7 = cala sekcja przy ChunkIndex 0).
[[nodiscard]] Eu7PackSectionChunkLoad
read_pack_section_chunk_load(
Eu7Module const &Module,
int Row,
int Column,
std::uint32_t ChunkIndex );
// Czysci thread-local cache odczytu PACK (otwarty plik + sparsowany naglowek sekcji).
void
reset_pack_section_read_cache();
} // namespace scene::eu7