mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1752] batch_glb: allow independent texture decodes to overlap #1768
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#1768
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/1752
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/batch-glb-per-texture-decode📝 Commits (1)
417b78bbatch_glb: allow independent texture decodes to overlap📊 Changes
2 files changed (+44 additions, -4 deletions)
View changed files
📝
tests/test_batch_glb.py(+29 -0)📝
tools/batch_glb.py(+15 -4)📄 Description
Claimed in the coordination issue as: BATCH-GLB-PER-TEXTURE-DECODE
What and why
TextureCache held its single registry lock while reading PNGs and decoding DDS files. Workers handling unrelated textures had to wait for each other. Each path and requested size now has its own lock and result. Callers sharing a key reuse the decode, including an ordinary decode failure. If the loader raises an unexpected exception, the next request can retry.
Tested
A two-worker barrier timed out on the baseline and completed on the branch. A second regression verified retries and two decode sizes for one path. The existing test still verifies exactly one DDS decode when two workers request the same broken texture.
python -I tests/test_batch_glb.pypassed all 18 tests on this branch (Windows, Python 3.14.7).git diff --checkand the repository game-data scan of all changed paths passed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only asset tooling).
AI-assisted: Yes.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.