mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #192] [CLOSED] make_game assets: exports and pool follow-ups use --jobs instead of running one by one #244
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#244
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/192
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9924📝 Commits (1)
d01ed69make_game: run asset exports and pool follow-ups on --jobs workers, results in order📊 Changes
2 files changed (+172 additions, -16 deletions)
View changed files
📝
make_game.py(+69 -16)📝
tests/test_make_game_assets_pools.py(+103 -0)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.What
make_game.assets()tookjobsbut ran the archive exports, the texture-pool exports and the pool follow-ups (ttpf_assets.complete_pool) in plainforloops, one after the other. Each list now runs on up to--jobsworkers (parallel_mapin make_game.py):--jobs budget//N, never more than--jobsin total. One worker (the default for--jobs 1, or a single item) runs inline exactly as before.complete_poolis pure Python (GIL).Not touched: the audio steps,
tools/rdna2spirv.py(#9779shard balancing,#9777work_root). Checked open PRs for "assets" and "make_game": none changes this function.Why
On a build with many texture pools the follow-up pass is the long single-core tail of the assets stage.
Tested
python -I tests/test_make_game_assets_pools.py: 12 tests pass (8 existing, 4 new).--jobsbudget of 2 each out of 4, pool follow-ups side by side in worker processes with log lines in pool order,--jobs 1keeps serial order, and the first missing manifest in pool order is the one reported.make_game.pythe two concurrency tests fail ("export ran alone", "pool follow-up ran alone"); the other tests pass.tests/test_make_game_*.pypass;test_make_game_resume.py(11 errors) andtest_make_game_empty_translation.py(1 error) fail identically on origin/main, unrelated.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.