mirror of
https://github.com/jhaizhou-ops/d2r-mobile
synced 2026-11-26 13:57:52 +08:00
* Android import pack: --warm-seed puts the pipeline warm-up seed into shaders/ The engine has read shaders/vk-pipeline-list.seed on a first launch since #113, but nothing put one into the import pack, so every v2.0 player gets the first-play stutter the seed removes. d2rm_android.py --warm-seed <file> copies a seed next to the bundles (dm/android/warm/ vk-pipeline-list.seed is used without the option when the repository has one). Every record is parsed first and its shader keys are checked against the bundles just made: a malformed or empty seed, or one none of whose keys is in the pack, stops the tool; some missing keys only produce a note. pack_info.txt gets WARM_SEED=<sha256 prefix>, which also makes the App re-import. The App's importer copies the whole shaders/ tree, so no App change is needed. dm/tools/tests/test_warm_seed.py checks the parsing, the rejections, the key check and the copy with a synthetic seed. Docs: docs/ANDROID.md step 1 and dm/android/README.md, with Chinese versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Import pack warm seed: no default inside the repository, the seed is checked when the arguments are read, the test runs with the host tests From the review of #161: - The default seed path dm/android/warm/vk-pipeline-list.seed is gone: a seed is only taken from --warm-seed, and the docs say to keep it outside the repository (whether a seed counts as derived game content is still open). - warm_seed_load reads and parses the seed right after the arguments, so a missing, malformed or empty seed exits at once instead of after the shader translation; the shader-key check against the bundles still runs once they exist. - make -C dm/host/tests run runs dm/tools/tests/test_warm_seed.py (the docs say so). - The docs say the seed helps a first launch only: a phone that already has files/dm/vk-pipeline-list.bin keeps its own list after a re-import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Yuechuan Yang <22333122+yyan160@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>